mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-02-21 19:24:44 +01:00
Fix mark message as read in search mode (#828)
This commit is contained in:
parent
c3a6f8253a
commit
9c01316178
@ -77,7 +77,7 @@ class MessageTabAdapter @Inject constructor() :
|
|||||||
}
|
}
|
||||||
messageItemAttachmentIcon.visibility = if (item.hasAttachments) View.VISIBLE else View.GONE
|
messageItemAttachmentIcon.visibility = if (item.hasAttachments) View.VISIBLE else View.GONE
|
||||||
|
|
||||||
root.setOnClickListener { onClickListener(item, position) }
|
root.setOnClickListener { onClickListener(item, holder.adapterPosition) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ class MessageTabPresenter @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun onMessageItemSelected(message: Message, position: Int) {
|
fun onMessageItemSelected(message: Message, position: Int) {
|
||||||
Timber.i("Select message ${message.id} item")
|
Timber.i("Select message ${message.id} item (position: $position)")
|
||||||
view?.run {
|
view?.run {
|
||||||
openMessage(message)
|
openMessage(message)
|
||||||
if (message.unread) {
|
if (message.unread) {
|
||||||
@ -132,6 +132,8 @@ class MessageTabPresenter @Inject constructor(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Timber.d("Applying filter. Full list: ${messages.size}, filtered: ${filteredList.size}")
|
||||||
|
|
||||||
updateData(filteredList)
|
updateData(filteredList)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user