Conversation: Wait for database fetch to add incoming messages
This commit is contained in:
parent
0f9bc57ccb
commit
3e5071e340
4 changed files with 21 additions and 4 deletions
|
@ -1115,8 +1115,8 @@
|
|||
}
|
||||
return msFromNow;
|
||||
},
|
||||
async setToExpire(force = false, options = {}) {
|
||||
const { skipSave } = options;
|
||||
async setToExpire(force = false, options) {
|
||||
const { skipSave } = options || {};
|
||||
|
||||
if (this.isExpiring() && (force || !this.get('expires_at'))) {
|
||||
const start = this.get('expirationStartTimestamp');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue