diff --git a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt index e12d1703354..bd51a4fa0f2 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt @@ -821,7 +821,6 @@ class ChatActivity : ).show() } - // TODO This needs to be refreshed manually } is ChatViewModel.DeleteChatMessageErrorState -> { diff --git a/app/src/main/java/com/nextcloud/talk/chat/viewmodels/ChatViewModel.kt b/app/src/main/java/com/nextcloud/talk/chat/viewmodels/ChatViewModel.kt index 12658da4d65..df5be648c0b 100644 --- a/app/src/main/java/com/nextcloud/talk/chat/viewmodels/ChatViewModel.kt +++ b/app/src/main/java/com/nextcloud/talk/chat/viewmodels/ChatViewModel.kt @@ -180,7 +180,7 @@ class ChatViewModel @Inject constructor( fun refreshChatParams(pullChatMessagesFieldMap: HashMap, overrideRefresh: Boolean = false) { if (pullChatMessagesFieldMap != _getFieldMapForChat.value || overrideRefresh) { - _getFieldMapForChat.postValue(_getFieldMapForChat.value) + _getFieldMapForChat.postValue(pullChatMessagesFieldMap) Log.d(TAG, "FieldMap Refreshed with $pullChatMessagesFieldMap vs ${_getFieldMapForChat.value}") } }