mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 04:09:49 +00:00
TimerView: don't continue to update after expiration
FREEBIE
This commit is contained in:
@@ -508,6 +508,9 @@
|
||||
isExpiring: function() {
|
||||
return this.get('expireTimer') && this.get('expirationStartTimestamp');
|
||||
},
|
||||
isExpired: function() {
|
||||
return this.msTilExpire() <= 0;
|
||||
},
|
||||
msTilExpire: function() {
|
||||
if (!this.isExpiring()) {
|
||||
return Infinity;
|
||||
|
||||
Reference in New Issue
Block a user