mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-14 23:18:43 +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) {
|
return if (insertResult != null) {
|
||||||
log(envelope.timestamp!!, "Inserted a pinned message update at ${insertResult.messageId}")
|
log(envelope.timestamp!!, "Inserted a pinned message update at ${insertResult.messageId}")
|
||||||
|
if (duration != MessageTable.PIN_FOREVER) {
|
||||||
|
AppDependencies.pinnedMessageManager.scheduleIfNecessary()
|
||||||
|
}
|
||||||
insertResult
|
insertResult
|
||||||
} else {
|
} else {
|
||||||
null
|
null
|
||||||
|
|||||||
Reference in New Issue
Block a user