|
@@ -43,18 +43,18 @@ fun Contact(navController: NavHostController, mainViewModel: MainViewModel) {
|
|
|
all?.get(it)?.f_pin ?: 0
|
|
|
}
|
|
|
) { item ->
|
|
|
- val product = all?.get(item)
|
|
|
+ val buddies = all?.get(item)
|
|
|
ListItem(
|
|
|
modifier = Modifier.selectable(selected = selectedItem == item, onClick = {
|
|
|
selectedItem = item
|
|
|
- navController.navigate(Screen.Chat.route + "/${product?.f_pin}") {
|
|
|
+ navController.navigate(Screen.Chat.route + "/${buddies?.f_pin}") {
|
|
|
launchSingleTop = true
|
|
|
restoreState = true
|
|
|
}
|
|
|
}),
|
|
|
headlineText = {
|
|
|
Text(
|
|
|
- product?.first_name ?: "",
|
|
|
+ buddies?.first_name ?: "",
|
|
|
style = MaterialTheme.typography.titleSmall
|
|
|
)
|
|
|
},
|
|
@@ -67,7 +67,8 @@ fun Contact(navController: NavHostController, mainViewModel: MainViewModel) {
|
|
|
leadingContent = {
|
|
|
AsyncImage(
|
|
|
model = ImageRequest.Builder(LocalContext.current)
|
|
|
- .data(product?.image_id)
|
|
|
+ .data("https://digixplatform.com/filepalio/image/${buddies?.image_id}")
|
|
|
+ .addHeader("Cookie" , "PHPSESSID=123;MOBILE=123")
|
|
|
.crossfade(true)
|
|
|
.build(),
|
|
|
placeholder = rememberVectorPainter(image = Icons.Default.Person),
|
|
@@ -76,10 +77,10 @@ fun Contact(navController: NavHostController, mainViewModel: MainViewModel) {
|
|
|
modifier = Modifier
|
|
|
.size(48.dp)
|
|
|
.clip(CircleShape)
|
|
|
- .background(Color.LightGray)
|
|
|
- .padding(8.dp),
|
|
|
+ .background(Color.LightGray),
|
|
|
+// .padding(8.dp),
|
|
|
error = rememberVectorPainter(image = Icons.Default.Person),
|
|
|
- colorFilter = ColorFilter.tint(Color.White)
|
|
|
+// colorFilter = ColorFilter.tint(Color.White)
|
|
|
)
|
|
|
}
|
|
|
)
|