add setGroupName()

pull/479/head
Ryan Tharp 6 years ago
parent 6d1c9700b1
commit eea6bac7e6

@ -2151,6 +2151,15 @@
});
}
},
async setGroupName(name) {
const profileName = this.get('name');
if (profileName !== name) {
this.set({ name });
await window.Signal.Data.updateConversation(this.id, this.attributes, {
Conversation: Whisper.Conversation,
});
}
},
async setGroupNameAndAvatar(name, avatarPath) {
const currentName = this.get('name');
const profileAvatar = this.get('profileAvatar');

Loading…
Cancel
Save