mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Update inbox when group avatars change
This commit is contained in:
@@ -229,6 +229,7 @@
|
||||
} else {
|
||||
this.avatarUrl = null;
|
||||
}
|
||||
this.trigger('change');
|
||||
},
|
||||
|
||||
getAvatarUrl: function() {
|
||||
|
||||
@@ -47,11 +47,15 @@
|
||||
},
|
||||
send: function() {
|
||||
return this.avatarInput.getThumbnail().then(function(avatarFile) {
|
||||
this.model.save({
|
||||
this.model.set({
|
||||
name: this.$('.name').val(),
|
||||
avatar: avatarFile,
|
||||
members: _.union(this.model.get('members'), this.recipients_view.recipients.pluck('id'))
|
||||
});
|
||||
if (avatarFile) {
|
||||
this.model.set({avatar: avatarFile});
|
||||
this.model.trigger('change:avatar');
|
||||
}
|
||||
this.model.save();
|
||||
textsecure.messaging.updateGroup(
|
||||
this.model.id,
|
||||
this.model.get('name'),
|
||||
|
||||
Reference in New Issue
Block a user