mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
remove useless expiration flag in data message
This commit is contained in:
parent
da66b1af2c
commit
1609812e5b
1 changed files with 0 additions and 8 deletions
|
@ -103,14 +103,6 @@ public final class VisibleMessage : Message {
|
|||
// TODO: Contact
|
||||
// Open group invitation
|
||||
if let openGroupInvitation = openGroupInvitation, let openGroupInvitationProto = openGroupInvitation.toProto() { dataMessage.setOpenGroupInvitation(openGroupInvitationProto) }
|
||||
// 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...
|
||||
var expiration: UInt32 = 0
|
||||
if let disappearingMessagesConfiguration = OWSDisappearingMessagesConfiguration.fetch(uniqueId: threadID!, transaction: transaction) {
|
||||
expiration = disappearingMessagesConfiguration.isEnabled ? disappearingMessagesConfiguration.durationSeconds : 0
|
||||
}
|
||||
dataMessage.setExpireTimer(expiration)
|
||||
// Group context
|
||||
do {
|
||||
try setGroupContextIfNeeded(on: dataMessage, using: transaction)
|
||||
|
|
Loading…
Reference in a new issue