Skip to content
Snippets Groups Projects
Unverified Commit a5205698 authored by Prateek Jain's avatar Prateek Jain Committed by GitHub
Browse files

[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: default avatarDjorkaeff Alexandre <djorkaeff.unb@gmail.com>
Co-authored-by: default avatarDiego Mello <diegolmello@gmail.com>
parent c4a749c2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment