Add support for expiration timer updates messages

This commit is contained in:
lilia 2016-09-26 17:26:00 -07:00
parent e809a0cf8b
commit 7331d967d2

View file

@ -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'));
},