[FIX] MessageBox mention shouldn't show group DMs (#2049)
* fixed-issue * [FIX] Filter users only if it's not a group chat Co-authored-by: Djorkaeff Alexandre <djorkaeff.unb@gmail.com> Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
c4a749c2e5
commit
a52056988e
|
@ -573,9 +573,9 @@ const RocketChat = {
|
|||
).fetch();
|
||||
|
||||
if (filterUsers && !filterRooms) {
|
||||
data = data.filter(item => item.t === 'd');
|
||||
data = data.filter(item => item.t === 'd' && !RocketChat.isGroupChat(item));
|
||||
} else if (!filterUsers && filterRooms) {
|
||||
data = data.filter(item => item.t !== 'd');
|
||||
data = data.filter(item => item.t !== 'd' || RocketChat.isGroupChat(item));
|
||||
}
|
||||
data = data.slice(0, 7);
|
||||
|
||||
|
|
Loading…
Reference in New Issue