mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Update inbox after sending a message
Also change the event name to reflect how its being used, and stop passing the message object around since it is not being used. // FREEBIE
This commit is contained in:
@@ -84,6 +84,8 @@
|
||||
active_at : now,
|
||||
timestamp : now,
|
||||
lastMessage : body
|
||||
}).then(function() {
|
||||
extension.trigger('updateInbox'); // inbox fetch
|
||||
});
|
||||
|
||||
var sendFunc;
|
||||
@@ -102,7 +104,7 @@
|
||||
});
|
||||
if (keyErrors.length) {
|
||||
message.save({ errors : keyErrors }).then(function() {
|
||||
extension.trigger('message', message); // notify frontend listeners
|
||||
extension.trigger('updateInbox'); // notify frontend listeners
|
||||
});
|
||||
} else {
|
||||
if (!(errors instanceof Array)) {
|
||||
|
||||
@@ -228,7 +228,7 @@
|
||||
|
||||
conversation.save().then(function() {
|
||||
message.save().then(function() {
|
||||
extension.trigger('message', message); // inbox fetch
|
||||
extension.trigger('updateInbox'); // inbox fetch
|
||||
if (message.isIncoming()) {
|
||||
notifyConversation(message);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user