Remove verbose updateLastMessage logging, fix MediaGallery save

This commit is contained in:
Scott Nonnenberg 2018-07-18 12:05:38 -07:00
parent 0ac3517d51
commit 5e64e4ef40
2 changed files with 1 additions and 7 deletions

View file

@ -904,12 +904,6 @@
: null, : null,
}); });
console.log('Conversation: Update last message:', {
id: this.idForLogging() || null,
messageTimestamp: lastMessageUpdate.timestamp || null,
messageType: lastMessageJSON ? lastMessageJSON.type : null,
messageSentAt: lastMessageJSON ? lastMessageJSON.sent_at : null,
});
this.set(lastMessageUpdate); this.set(lastMessageUpdate);
if (this.hasChanged('lastMessage') || this.hasChanged('timestamp')) { if (this.hasChanged('lastMessage') || this.hasChanged('timestamp')) {

View file

@ -658,7 +658,7 @@
Component: Signal.Components.LightboxGallery, Component: Signal.Components.LightboxGallery,
props: { props: {
messages: media, messages: media,
onSave: () => saveAttachment({ message }), onSave: saveAttachment,
selectedIndex, selectedIndex,
}, },
onClose: () => Signal.Backbone.Views.Lightbox.hide(), onClose: () => Signal.Backbone.Views.Lightbox.hide(),