Send sync sent messages properly in 1-member group

This commit is contained in:
Scott Nonnenberg 2019-03-13 10:46:00 -07:00
parent a7d0e6bf88
commit 32fa5cccde
2 changed files with 48 additions and 40 deletions

View file

@ -272,9 +272,12 @@
this.hasExpired = true;
},
getPropsForTimerNotification() {
const { expireTimer, fromSync, source } = this.get(
'expirationTimerUpdate'
);
const timerUpdate = this.get('expirationTimerUpdate');
if (!timerUpdate) {
return null;
}
const { expireTimer, fromSync, source } = timerUpdate;
const timespan = Whisper.ExpirationTimerOptions.getName(expireTimer || 0);
const disabled = !expireTimer;