Skip to content

Commit

Permalink
test 3 - fix
Browse files Browse the repository at this point in the history
Signed-off-by: rapterjet2004 <[email protected]>
  • Loading branch information
rapterjet2004 committed Mar 28, 2024
1 parent 649cb27 commit 4d8c79e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,6 @@ class ChatActivity :
).show()
}

// TODO This needs to be refreshed manually
}

is ChatViewModel.DeleteChatMessageErrorState -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ class ChatViewModel @Inject constructor(

fun refreshChatParams(pullChatMessagesFieldMap: HashMap<String, Int>, 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}")
}
}
Expand Down

0 comments on commit 4d8c79e

Please sign in to comment.