fix to set placeholder images in chat

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-01-17 13:44:24 +01:00
parent 1a334c8861
commit 2ddb0782f3
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -621,8 +621,8 @@ class ChatController(args: Bundle) :
adapter = TalkMessagesListAdapter(
senderId,
messageHolders,
ImageLoader { imageView, url, _ ->
imageView.loadAvatarOrImagePreview(url!!, conversationUser, placeholder = payload as? Drawable)
ImageLoader { imageView, url, placeholder ->
imageView.loadAvatarOrImagePreview(url!!, conversationUser, placeholder as Drawable?)
},
this
)