Fix Android compatibility issue
This commit is contained in:
parent
524abebd4c
commit
bc4be99070
|
@ -158,6 +158,11 @@ public final class ClosedGroupUpdate : ControlMessage {
|
||||||
dataMessageProto.setClosedGroupUpdate(try closedGroupUpdate.build())
|
dataMessageProto.setClosedGroupUpdate(try closedGroupUpdate.build())
|
||||||
// Group context
|
// Group context
|
||||||
try setGroupContextIfNeeded(on: dataMessageProto, using: transaction)
|
try setGroupContextIfNeeded(on: dataMessageProto, using: transaction)
|
||||||
|
// Expiration timer
|
||||||
|
// TODO: We * want * expiration timer updates to be explicit. But currently Android will disable the expiration timer for a conversation
|
||||||
|
// if it receives a message without the current expiration timer value attached to it...
|
||||||
|
let expiration = OWSDisappearingMessagesConfiguration.fetch(uniqueId: threadID!, transaction: transaction)?.durationSeconds ?? 0
|
||||||
|
dataMessageProto.setExpireTimer(expiration)
|
||||||
contentProto.setDataMessage(try dataMessageProto.build())
|
contentProto.setDataMessage(try dataMessageProto.build())
|
||||||
return try contentProto.build()
|
return try contentProto.build()
|
||||||
} catch {
|
} catch {
|
||||||
|
|
Loading…
Reference in New Issue