mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
Messages bugfix again :D (#164)
* Handle offline messages | Fetch messages when broadcasted | Fetch message groups * Fetch messages on notification click * Dont fetch groups if duplicate group * Only submit new message on click submit * Fix infinite loading when duplicated group is creatded * Fix infinite loading when group already existed * Make code prettier * Centralize fetch messages on goToConversation * Remove duplicated event * Improve message groups mapping to include yourself for unreadCount + Fix redirection after adding contact + General improvements * Remove conflicts * Fix media paths
This commit is contained in:
1 parent
a2c0f94bd8
commit
0ec2b682e7
12 files changed
+132
-69
No files matched your search
@@ -1,2 +1,7 @@
|
||||
export const goToConversation = (messageGroup, history) =>
|
||||
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 });
|
||||
};
|
||||
Reference in new issue
Block a user