mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01: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?> {
|
IFilterable<String?> {
|
||||||
private var header: GenericTextHeaderItem? = null
|
private var header: GenericTextHeaderItem? = null
|
||||||
|
|
||||||
|
private var isInitialLoad = true
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
conversation: Conversation,
|
conversation: Conversation,
|
||||||
user: User,
|
user: User,
|
||||||
@ -179,11 +181,12 @@ class ConversationItem(
|
|||||||
ConversationType.ROOM_GROUP_CALL,
|
ConversationType.ROOM_GROUP_CALL,
|
||||||
ConversationType.FORMER_ONE_TO_ONE,
|
ConversationType.FORMER_ONE_TO_ONE,
|
||||||
ConversationType.ROOM_PUBLIC_CALL ->
|
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
|
else -> holder.binding.dialogAvatar.visibility = View.GONE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
isInitialLoad = false
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun shouldLoadAvatar(
|
private fun shouldLoadAvatar(
|
||||||
|
Loading…
Reference in New Issue
Block a user