Track groups I've left
// FREEBIE
This commit is contained in:
parent
83b25c0bfa
commit
010297f4c5
5 changed files with 54 additions and 40 deletions
|
@ -131,13 +131,17 @@
|
|||
|
||||
function onGroupReceived(ev) {
|
||||
var groupDetails = ev.groupDetails;
|
||||
ConversationController.create({
|
||||
var conversation = ConversationController.create({
|
||||
id: groupDetails.id,
|
||||
name: groupDetails.name,
|
||||
members: groupDetails.members,
|
||||
avatar: groupDetails.avatar,
|
||||
type: 'group',
|
||||
}).save();
|
||||
});
|
||||
if (!groupDetails.active) {
|
||||
conversation.set({left: true});
|
||||
}
|
||||
conversation.save();
|
||||
}
|
||||
|
||||
function onMessageReceived(ev) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue