|
|
@ -901,11 +901,6 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
|
|
|
|
expirationMode
|
|
|
|
expirationMode
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
// For some reasons, we want a timer update to "off" to disappear with the previous setting on that conversation...
|
|
|
|
|
|
|
|
const shouldUsePreviousExpiration =
|
|
|
|
|
|
|
|
expirationType === 'unknown' &&
|
|
|
|
|
|
|
|
previousExpirationMode !== 'off' &&
|
|
|
|
|
|
|
|
previousExpirationMode !== 'legacy';
|
|
|
|
|
|
|
|
const commonAttributes = {
|
|
|
|
const commonAttributes = {
|
|
|
|
flags: SignalService.DataMessage.Flags.EXPIRATION_TIMER_UPDATE,
|
|
|
|
flags: SignalService.DataMessage.Flags.EXPIRATION_TIMER_UPDATE,
|
|
|
|
expirationTimerUpdate: {
|
|
|
|
expirationTimerUpdate: {
|
|
|
@ -937,8 +932,8 @@ export class ConversationModel extends Backbone.Model<ConversationAttributes> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
message.set({
|
|
|
|
message.set({
|
|
|
|
expirationType: shouldUsePreviousExpiration ? previousExpirationMode : expirationType,
|
|
|
|
expirationType: expireTimer === 0 ? oldExpirationType : expirationType,
|
|
|
|
expireTimer: shouldUsePreviousExpiration ? previousExpirationTimer : expireTimer,
|
|
|
|
expireTimer: expireTimer === 0 ? oldExpireTimer : expireTimer,
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|