Skip to content

Commit b259d59

Browse files
rapterjet2004mahibi
authored andcommitted
fixed bug with load more messages not clearing previous message state
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
1 parent 023588b commit b259d59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/com/nextcloud/talk/conversationlist/viewmodels/ConversationsListViewModel.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ class ConversationsListViewModel @Inject constructor(
257257
}?.collect { messages ->
258258
_searchResultFlow.update {
259259
it.filter { item ->
260-
item !is LoadMoreResultsItem
260+
item !is LoadMoreResultsItem && item !is MessageResultItem
261261
} + messages
262262
}
263263
}

0 commit comments

Comments
 (0)