mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
only reload avatars in conversation list on initial loading, else use from cache
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
2ecea9e569
commit
b4256e57c9
@ -68,6 +68,8 @@ class ConversationItem(
|
||||
IFilterable<String?> {
|
||||
private var header: GenericTextHeaderItem? = null
|
||||
|
||||
private var isInitialLoad = true
|
||||
|
||||
constructor(
|
||||
conversation: Conversation,
|
||||
user: User,
|
||||
@ -179,11 +181,12 @@ class ConversationItem(
|
||||
ConversationType.ROOM_GROUP_CALL,
|
||||
ConversationType.FORMER_ONE_TO_ONE,
|
||||
ConversationType.ROOM_PUBLIC_CALL ->
|
||||
holder.binding.dialogAvatar.loadConversationAvatar(user, model, true)
|
||||
holder.binding.dialogAvatar.loadConversationAvatar(user, model, isInitialLoad)
|
||||
|
||||
else -> holder.binding.dialogAvatar.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
isInitialLoad = false
|
||||
}
|
||||
|
||||
private fun shouldLoadAvatar(
|
||||
|
Loading…
Reference in New Issue
Block a user