From 7331d967d22f5d404f0edfdb2072ef692d4910fa Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 26 Sep 2016 17:26:00 -0700 Subject: [PATCH] Add support for expiration timer updates messages --- js/models/messages.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/models/messages.js b/js/models/messages.js index 7e141ad0..81531df4 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -32,6 +32,10 @@ var flag = textsecure.protobuf.DataMessage.Flags.END_SESSION; return !!(this.get('flags') & flag); }, + isExpirationTimerUpdate: function() { + var flag = textsecure.protobuf.DataMessage.Flags.EXPIRATION_TIMER_UPDATE; + return !!(this.get('flags') & flag); + }, isGroupUpdate: function() { return !!(this.get('group_update')); },