trigger messageAdded on some message added from ctx menu

pull/1381/head
Audric Ackermann 4 years ago
parent c8e8d851f9
commit e5ef061fbe
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -1489,6 +1489,11 @@
const id = await message.commit();
message.set({ id });
window.Whisper.events.trigger('messageAdded', {
conversationKey: this.id,
messageModel: message,
});
await this.commit();
// if change was made remotely, don't send it to the number/group
@ -1593,6 +1598,10 @@
const id = await message.commit();
message.set({ id });
window.Whisper.events.trigger('messageAdded', {
conversationKey: this.id,
messageModel: message,
});
return message;
},
@ -1736,6 +1745,10 @@
const id = await message.commit();
message.set({ id });
window.Whisper.events.trigger('messageAdded', {
conversationKey: this.id,
messageModel: message,
});
// FIXME what about public groups?
const quitGroup = {

Loading…
Cancel
Save