When finding all groups involving a number, load from DB not memory
FREEBIE
This commit is contained in:
parent
0adc398a6f
commit
3e0fa995dd
3 changed files with 12 additions and 10 deletions
|
@ -116,8 +116,11 @@
|
|||
});
|
||||
},
|
||||
getAllGroupsInvolvingId: function(id) {
|
||||
return conversations.filter(function(conversation) {
|
||||
return !conversation.isPrivate() && conversation.hasMember(id);
|
||||
var groups = new Whisper.GroupCollection();
|
||||
return groups.fetchGroups(id).then(function() {
|
||||
return groups.map(function(group) {
|
||||
return conversations.add(group);
|
||||
});
|
||||
});
|
||||
},
|
||||
updateInbox: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue