Insert timer update messages when inferring timer changes
This commit is contained in:
@@ -366,8 +366,13 @@
|
||||
conversation.set({expireTimer: dataMessage.expireTimer});
|
||||
} else if (dataMessage.expireTimer) {
|
||||
message.set({expireTimer: dataMessage.expireTimer});
|
||||
// todo: insert an update if needed
|
||||
conversation.set({expireTimer: dataMessage.expireTimer});
|
||||
}
|
||||
if (dataMessage.expireTimer) {
|
||||
if (dataMessage.expireTimer !== conversation.get('expireTimer')) {
|
||||
conversation.addExpirationTimerUpdate(dataMessage.expireTimer, source);
|
||||
}
|
||||
} else if (conversation.get('expireTimer')) {
|
||||
conversation.addExpirationTimerUpdate(0, source);
|
||||
}
|
||||
|
||||
var conversation_timestamp = conversation.get('timestamp');
|
||||
|
Reference in New Issue
Block a user