Group avatars
This commit is contained in:
parent
d52db8fe6f
commit
3d6c251fd1
11 changed files with 87 additions and 36 deletions
|
@ -131,15 +131,16 @@
|
|||
return -m.get('timestamp');
|
||||
},
|
||||
|
||||
createGroup: function(recipients, name) {
|
||||
createGroup: function(recipients, name, avatar) {
|
||||
var attributes = {};
|
||||
attributes = {
|
||||
name : name,
|
||||
members : recipients,
|
||||
type : 'group',
|
||||
avatar : avatar
|
||||
};
|
||||
var conversation = this.add(attributes, {merge: true});
|
||||
return textsecure.messaging.createGroup(recipients, name).then(function(groupId) {
|
||||
return textsecure.messaging.createGroup(recipients, name, avatar).then(function(groupId) {
|
||||
conversation.save({
|
||||
id : getString(groupId),
|
||||
groupId : getString(groupId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue