mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-19 00:01:08 +01:00
Fix conversation list not updating when disappearing message expires
When a disappearing message expired while the user was on the chat list, the message preview would persist until the user navigated into that conversation or restarted the app. The issue was that deleteMessage() only called notifyConversationListeners(threadId) which notifies observers watching a specific thread, but not notifyConversationListListeners() which notifies the conversation list UI. Other similar operations (like bulk deletes at line 3639) correctly call both.
This commit is contained in:
committed by
Michelle Tang
parent
623d2f2659
commit
c727f93534
@@ -3699,6 +3699,10 @@ open class MessageTable(context: Context?, databaseHelper: SignalDatabase) : Dat
|
||||
notifyStickerListeners()
|
||||
notifyStickerPackListeners()
|
||||
OptimizeMessageSearchIndexJob.enqueue()
|
||||
|
||||
if (updateThread) {
|
||||
notifyConversationListListeners()
|
||||
}
|
||||
}
|
||||
|
||||
return threadDeleted
|
||||
|
||||
Reference in New Issue
Block a user