Omit left groups from search
Unless they contain messages. // FREEBIE
This commit is contained in:
parent
010297f4c5
commit
7e8ce5eb54
3 changed files with 14 additions and 3 deletions
|
@ -123,6 +123,10 @@
|
|||
message.send(sendFunc(this.get('id'), body, attachments, now));
|
||||
},
|
||||
|
||||
isSearchable: function() {
|
||||
return !this.get('left') || !!this.get('lastMessage');
|
||||
},
|
||||
|
||||
endSession: function() {
|
||||
if (this.isPrivate()) {
|
||||
var now = Date.now();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue