Update conversation first on timer change to eliminate flicker
This commit is contained in:
parent
22613c8cc4
commit
8180417611
1 changed files with 2 additions and 2 deletions
|
@ -907,6 +907,8 @@
|
||||||
// to be above the message that initiated that change, hence the subtraction.
|
// to be above the message that initiated that change, hence the subtraction.
|
||||||
const timestamp = (receivedAt || Date.now()) - 1;
|
const timestamp = (receivedAt || Date.now()) - 1;
|
||||||
|
|
||||||
|
await wrapDeferred(this.save({ expireTimer }));
|
||||||
|
|
||||||
const message = this.messageCollection.add({
|
const message = this.messageCollection.add({
|
||||||
// Even though this isn't reflected to the user, we want to place the last seen
|
// Even though this isn't reflected to the user, we want to place the last seen
|
||||||
// indicator above it. We set it to 'unread' to trigger that placement.
|
// indicator above it. We set it to 'unread' to trigger that placement.
|
||||||
|
@ -935,8 +937,6 @@
|
||||||
});
|
});
|
||||||
message.set({ id });
|
message.set({ id });
|
||||||
|
|
||||||
await wrapDeferred(this.save({ expireTimer }));
|
|
||||||
|
|
||||||
// if change was made remotely, don't send it to the number/group
|
// if change was made remotely, don't send it to the number/group
|
||||||
if (receivedAt) {
|
if (receivedAt) {
|
||||||
return message;
|
return message;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue