mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-02 08:23:00 +01:00
Skip pins of deleted messages.
This commit is contained in:
committed by
Greyson Parrelli
parent
602ea46b8b
commit
3ef0d3e4a3
@@ -1893,6 +1893,11 @@ object SyncMessageProcessor {
|
||||
return -1
|
||||
}
|
||||
|
||||
if (targetMessage.isRemoteDelete) {
|
||||
warn(envelope.timestamp!!, "Cannot pin deleted message")
|
||||
return -1
|
||||
}
|
||||
|
||||
val targetMessageId = (targetMessage as? MmsMessageRecord)?.latestRevisionId?.id ?: targetMessage.id
|
||||
val duration = if (pinMessage.pinDurationForever == true) MessageTable.PIN_FOREVER else pinMessage.pinDurationSeconds!!.toLong()
|
||||
val outgoingMessage = OutgoingMessage.pinMessage(
|
||||
|
||||
Reference in New Issue
Block a user