Commit Graph
36 Commits
Author SHA1 Message Date
J Francisco Rader a3d7c19f44 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
2021-03-22 18:57:20 -03:00
J Francisco Rader 0ec2b682e7 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
2021-03-18 23:01:54 -03:00
Taso f0c5e5101e chore(typings): Moved common typings to root dir 2021-03-14 15:19:30 -04:00
J Francisco Rader 1a09fa57ae Fix: Workaround for ESX errors pertaining to player loading (#153)
* Set phone ready before sending any init events + Show initializing phone message if not ready yet

* Send phone ready to nui
2021-03-06 19:25:32 -05:00
J Francisco Rader 08d2de2dc7 tweak(phone/messages): Improve transition to MessageModal (conversation) (#140) 2021-03-06 02:10:13 -05:00
Taso 5c9c75c36c tweak(phone/snackbar-provider): Altered API to expect a string for message, not a key (#135)
Change SnackbarProviderAlert message property to allow for any string rather than a explicit translation key
2021-03-04 22:40:17 -05:00
9abac70427 feat/messages additions (in memory of Leonard Nimoy) (#118)
* feat(resouces/messages): broadcast messagse to participants

* feat(phone/messages): notifications for messages

* remove weird empty onNet

* reformat?

* last reformat! This pr will be squashed

* tweak(phone/messages): send groupName to notification alert

* fix identifer

* fixing notification groupName

* resbasee...i think

* feat(messages): check for unread messages

* send nui event is count > 0

* remove usless test

* import.sql update

* Refactor NotificationsProvider and fix messages notifications

* Send groupId on message broadcast

* Update phone/src/apps/messages/components/modal/Conversation.tsx

* Update phone/src/apps/messages/hooks/useMessageNotifications.ts

* Update phone/src/os/notifications/providers/NotificationsProvider.tsx

* Update phone/src/common/typings/messages.ts

* Update phone/src/apps/messages/hooks/useMessageNotifications.ts

* clean sql file

* Update resources/server/sv_messages.ts

* Fetch message groups when other person created for you

* fix sql

* Select unreadCount from messageGroups

* whatever husky again

* Add members menu and add contact in messages

* Add from group bubbles

* Fix messages scroll with new msg

* Message image menu flicker + justify bottom messages

* Improve debugging

* Add container to Slider

* Improve logger

* Fix create message

* add creator identifier to group hash

* Fix dafuq i broke

* group_id bigger varchar in column

* group_id bigger varchar in column

* Phone visibility default browser

* Add debugging

Co-authored-by: J Francisco Rader <[email protected]>
Co-authored-by: J Francisco Rader <[email protected]>
2021-03-04 18:35:33 -05:00
Christopher 6f4ee009a9 printWidth: 100 2021-03-02 21:03:06 +01:00
Christopher d27aeb3b0e 120 in printWidth since rocky got md 2021-03-02 20:56:15 +01:00
Christopher f552c1212c more formatting 2021-03-02 20:45:41 +01:00
Christopher 046447b0fb mad formatting 2021-03-02 20:41:25 +01:00
Christopher 4d82c8e69a feat(phone/messages): minor changes for nui 2021-02-28 01:39:26 +01:00
Christopher ec913fbef4 remove(phone/messages): remove alerts components 2021-02-28 01:35:02 +01:00
Christopher 796548d9d5 remove more unused variables :( 2021-02-26 19:52:36 +01:00
J Francisco Rader b93d5faee1 Redirect when new msg group is created, and use contacts to push a new message from there 2021-02-16 17:10:45 -05:00
J Francisco Rader 40f9555b39 Make Camera app use router (#69)
* Make Camera app use router

* Remove unused hooks

* Fucking communicate messages with camera with router

* Improved sharing in messages flow

* Fix clipboard

* Removeunused imports

* improve routing helpers

* Fix bug :D

* Fix stupid thing

* Add docs to useQueryParams hook
2021-02-06 22:24:50 +01:00
Taso 54daa42454 styling: Enforced styling across all files (#55) 2021-01-12 21:31:03 -05:00
Christopher 18db9e5a4d feat(bank/nui): fixed warnings 2021-01-07 21:43:31 +01:00
Taso bb5a4c7725 misc(nui): Renamed 'interfaces' folder to standard 'typings' 2020-12-13 00:06:36 -05:00
Christopher 1249c3a364 feat(messages/nui): modal for sending images 2020-12-11 17:23:55 +01:00
Christopher 4c7ee4860a feat(messages/nui): imageModal for sending images 2020-12-10 21:09:15 +01:00
erik-sn be5c038128 prettier formatting 2020-11-21 00:37:13 -05:00
erik-sn 9363032c42 sql cleanup 2020-11-21 00:35:44 -05:00
erik-sn 2c4c54109f more error handling 2020-11-21 00:30:23 -05:00
erik-sn 9403edcb92 working error handling 2020-11-21 00:08:34 -05:00
erik-sn 5a78b67946 working group chats 2020-11-20 18:40:51 -05:00
erik-sn 681ce16912 working groups & messages 2020-11-20 18:14:07 -05:00
erik-sn ccbc2d3b87 working sending messages 2020-11-20 10:28:09 -05:00
erik-sn 79857fd52a channel -> group 2020-11-19 14:05:29 -05:00
erik-sn 956070951a initial working version 2020-11-19 13:41:23 -05:00
itschip 8242a5296b new messages stuff 2020-11-17 19:39:27 +01:00
chip ef41e5d201 more message stuff 2020-11-11 14:34:14 +01:00
chip 374d4c9269 inital message app 2020-11-03 16:26:09 +01:00
erik-sn 3273d192c9 working typescript compiling and fixing linting issues 2020-10-11 13:59:25 -04:00
erik-sn cff746aa38 working typescript version 2020-10-07 12:19:55 -04:00
chip ec37fcde46 I really hope I didnt fuck anything up now 2020-08-23 20:08:08 +02:00