Commit 8c419945 authored by Leonardo Aramaki's avatar Leonardo Aramaki

Filter out previously pinned messages that were remove deleted

parent 692b65f3
......@@ -40,7 +40,7 @@ class PinnedMessagesPresenter @Inject constructor(private val view: PinnedMessag
view.showLoading()
val pinnedMessages = client.getRoomPinnedMessages(roomId, room.type, pinnedMessagesListOffset)
pinnedMessagesListOffset = pinnedMessages.offset.toInt()
val messageList = mapper.mapToViewModelList(pinnedMessages.result, settings)
val messageList = mapper.mapToViewModelList(pinnedMessages.result, settings).filterNot { it.isSystemMessage }
view.showPinnedMessages(messageList, serverUrl)
view.hideLoading()
}.ifNull {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment