mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-15 07:28:30 +00:00
Improve scheduling of the expiration of pinned messages.
This commit is contained in:
@@ -1327,6 +1327,9 @@ object DataMessageProcessor {
|
||||
|
||||
return if (insertResult != null) {
|
||||
log(envelope.timestamp!!, "Inserted a pinned message update at ${insertResult.messageId}")
|
||||
if (duration != MessageTable.PIN_FOREVER) {
|
||||
AppDependencies.pinnedMessageManager.scheduleIfNecessary()
|
||||
}
|
||||
insertResult
|
||||
} else {
|
||||
null
|
||||
|
||||
Reference in New Issue
Block a user