mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Tweaks / Message notifications (#174)
* Remove msg notifications when opening one | Dont alert notifications when inside that conversation * Fix msg events * Fix goToConversation util * Fix nuiEvents for messages
This commit is contained in:
1 parent
b42ee97450
commit
a3d7c19f44
3 files changed
+33
-11
No files matched your search
@@ -1,7 +1,8 @@
|
||||
import { MessageEvents } from '../../../../../typings/messages';
|
||||
import Nui from '../../../os/nui-events/utils/Nui';
|
||||
|
||||
export const goToConversation = (messageGroup, history) => {
|
||||
if (!messageGroup?.groupId || !history) return;
|
||||
history.push(`/messages/conversations/${messageGroup.groupId}`);
|
||||
Nui.send('phone:fetchMessages', { groupId: messageGroup.groupId });
|
||||
Nui.send(MessageEvents.FETCH_MESSAGES, { groupId: messageGroup.groupId });
|
||||
};
|
||||
Reference in new issue
Block a user