Commit Graph

  • 0ffeb67a3c User signals now support not selecting any signal (which is the default on start to avoid "insta-reading" messages of the top isgnal) Kyren223 2025-02-06 16:56:05 +02:00
  • 242add420d Implemented network icon notifications for user signals icon Kyren223 2025-02-06 16:45:59 +02:00
  • 3c05ff0937 Added notifications display in user signals Kyren223 2025-02-06 16:33:16 +02:00
  • f10f8396cc Added support for editing messages in user signals Kyren223 2025-02-05 20:00:29 +02:00
  • b96118f59b Removed all instances of setting the user data, this is retrieved once on start, then managed by the client and stored once on client exit Kyren223 2025-02-05 19:51:00 +02:00
  • 0bf5515629 When a user sends a message "signal" and the receiving user doesn't have the signal already open, it will be added as the first signal Kyren223 2025-02-05 19:41:34 +02:00
  • 8a8c4e9abc Refactored all instances of the word "peer" and it's variants to "signal" and it's variants as this is the new terminology for "user signals" which are direct messages between 2 users Kyren223 2025-02-05 16:54:09 +02:00
  • 9d1158f03e Implemented deleting messages in user signals Kyren223 2025-02-05 16:45:01 +02:00
  • f0607f1663 Server now also sends the last_read column to the client so the client so the client can use it to persist notifications Kyren223 2025-02-04 19:37:06 +02:00
  • 752403fd52 Implemented notifications rework on the client Kyren223 2025-02-04 19:32:04 +02:00
  • fe520e219c Server now uses a new context for api requests to make sure they still get completed even if the user disconnects, this is not ideal and should be reworked in the future Kyren223 2025-02-04 19:30:30 +02:00
  • d9ae301818 Reverted back the removal of the logic in get notifications to check if the user has access to the frequency, because it is needed for the is_admin ping type but also to prevent the case where someone was an admin, got demoted and can now monitor when new messages are sent there Kyren223 2025-02-04 19:08:22 +02:00
  • eab8cba4bb Refactored the way notifications work on the server-side, next commit fixes the client to use this new system Kyren223 2025-02-04 18:52:57 +02:00
  • 42a1ee12c1 Fixed crash in user signals Kyren223 2025-02-04 16:54:51 +02:00
  • e3b22023d8 Fixed a bug in viminput where trying to delete in visual mode up to the end of the line and that line is the last line, it wouldn't delete anything Kyren223 2025-02-03 19:38:43 +02:00
  • 7d9a1adb1e Added support for viw/vaw and viW/vaW in viminput Kyren223 2025-02-03 19:29:16 +02:00
  • 4ad772a1e9 Added v/V in visual/visual line modes to switch between the 2 Kyren223 2025-02-03 19:01:52 +02:00
  • cac7be6c22 Fixed a bug where users weren't able to scroll higher if they already got to the top message but then more messages have been added Kyren223 2025-02-03 18:13:15 +02:00
  • ad25655d5f Fixed first message of a user triggering the "new" line if there were no new messages in the frequency/receiver Kyren223 2025-02-03 17:38:19 +02:00
  • c0013eba37 Fixed instances where viminput would still show the terminal background Kyren223 2025-02-03 17:30:23 +02:00
  • a6cb16570e Pings now have a matching backgground if the user is effected by them Kyren223 2025-02-03 17:14:35 +02:00
  • e8a7f654d7 Fixed edited messages still showing terminal bg Kyren223 2025-02-03 17:03:13 +02:00
  • 008d7cd0cd Added background for chat to avoid relying on terminal background Kyren223 2025-02-03 16:50:53 +02:00
  • 822347c1aa Moved client-side calculations of notification to after all the components have updated instead of before so the view will reflect the update in case any of the updates change the notifications Kyren223 2025-02-02 19:28:11 +02:00
  • c77ac77e78 Added support for offline notifications where the server calculates them and sends the info to the client when it connects Kyren223 2025-02-02 19:23:50 +02:00
  • a1c20cbfc5 Corrected separator background to match the background of the section they separate Kyren223 2025-02-02 18:35:36 +02:00
  • b3e4eb11be Fixed rendering issue with pings in frequencylist Kyren223 2025-02-02 18:30:22 +02:00
  • 69bbde190e Reworked how frequency notifications work Kyren223 2025-02-01 17:36:23 +02:00
  • 0659bdaf81 Added a way to display notifications for networks Kyren223 2025-02-01 16:51:10 +02:00
  • ac01dff4e7 Started working on notifications for networks (got to carried away with how it looks lol) Kyren223 2025-01-30 20:33:02 +02:00
  • 088baa6d3a Implemented frequency-level notifications and pings Kyren223 2025-01-30 19:04:52 +02:00
  • a0fb12ca9a Added automatic saving when the client exits (using ctrl+c), will abort and not save if it takes longer than 1 second Kyren223 2025-01-30 18:55:29 +02:00
  • e98132bb4a Added "new" indicator to show which messages are new when opening a frequency, similar to how discord works Kyren223 2025-01-30 16:44:11 +02:00
  • eac9e1ad09 Pressing enter will now properly update the border of viminput Kyren223 2025-01-29 16:21:40 +02:00
  • 8c805499ec Fixed incorrect rendering of peers in the user signals when they are trusted and their public key mismatches and also ellipsis when the username overflows the width Kyren223 2025-01-28 19:48:18 +02:00
  • f3bf8a9c5d Fixed recently introduced crash due to trying to access network info while in user signals Kyren223 2025-01-28 19:37:33 +02:00
  • 2e9e0785c3 Fixed wrapping issues of placeholder in viminput and also re-phrased some things Kyren223 2025-01-28 19:33:51 +02:00
  • 7abb46eb81 Fixed viminput border not updating instantly Kyren223 2025-01-28 19:12:19 +02:00
  • 9f6a91900e Fixed a bug where you could scroll infinitely down Kyren223 2025-01-28 18:50:20 +02:00
  • 3cb6290617 Fixed a bug where all messages in a group up to the selected message will be selected, instead of just the selected message Kyren223 2025-01-28 18:35:00 +02:00
  • 596bbcfe81 Fixed crash where frequency view will be called after changing the network due to out of bounds indexing Kyren223 2025-01-28 18:28:09 +02:00
  • b9cef4710b Simplified ping syntax by changing the prefix from @ping: to just @ Kyren223 2025-01-28 18:05:43 +02:00
  • b14299515a Fixed issues related to ping rendering and added a way to show pings to other users even if the ping doesn't "ping" them Kyren223 2025-01-28 17:53:14 +02:00
  • ba48f3470c Fixed a bug where pressing "b" even when not focused on memberlist would swap memberlist/banlist Kyren223 2025-01-27 20:25:49 +02:00
  • cb214d740a Added pings to messages in frequencies Kyren223 2025-01-27 20:10:48 +02:00
  • b2bd96e46b Fixed bug where the key was always the receiver ID instead of the other user (which can be either receiver or sender) Kyren223 2025-01-26 19:15:54 +02:00
  • 111ea3582c Fixed a bug where the client wouldn't update the server after removing a user conversation Kyren223 2025-01-26 19:10:46 +02:00
  • 97a85f94e5 Added the ability to read and send messages between 2 users Kyren223 2025-01-26 19:09:02 +02:00
  • eab0af859c Fixed a bug where it was possible to add the same user multiple times in the user signals Kyren223 2025-01-26 18:50:49 +02:00
  • a39fa91fe0 Added "i" to copy user ID in user signals Kyren223 2025-01-26 18:47:35 +02:00
  • 9bf320340f Implemented signal chat on the client side along with adding a user id in the user signals Kyren223 2025-01-26 18:43:03 +02:00
  • 1d76c3f831 Added adding/removing user signals (direct messages) Kyren223 2025-01-26 18:17:50 +02:00
  • bcd13d0afb Added basic peer list Kyren223 2025-01-26 17:37:58 +02:00
  • 8abb4518e9 Removed unused function Kyren223 2025-01-25 19:26:42 +02:00
  • abb6abddf1 Added help page for ban list Kyren223 2025-01-25 19:21:50 +02:00
  • 1935052450 Window resize messages now propagate to child views instead of just changing the ui height/width which causes a re-render making the app more responsive Kyren223 2025-01-25 19:16:04 +02:00
  • ab6bfe9186 Fixed a bug where being kicked/banned from a network while being offline will cause a desync and crash the server and show an invalid network on the client side Kyren223 2025-01-25 19:09:37 +02:00
  • d06bbbe2f6 Added banning from chat using "B" Kyren223 2025-01-25 18:55:33 +02:00
  • f3b89094c5 Implemented client-side ban reason view in banlist Kyren223 2025-01-25 18:54:03 +02:00
  • 5c96cb4e60 Added banlist on the client and fixed some server side issues with banning Kyren223 2025-01-25 18:26:17 +02:00
  • acf87efce9 Added the ability to ban client-side from the memberslist Kyren223 2025-01-25 17:21:04 +02:00
  • 5117d4ddda Fixed server crash due to accidental printing of a session address that is nil Kyren223 2025-01-25 17:15:23 +02:00
  • 02e55d769d Added a list of banned members server-side Kyren223 2025-01-25 16:30:50 +02:00
  • 0da7603a41 Getting banned will now also kick the member from the network Kyren223 2025-01-25 16:08:48 +02:00
  • 99b394df3c Renamed network id to network invite code Kyren223 2025-01-24 21:36:12 +02:00
  • 6a13388caf Added help popups when pressing "?" to show keybinds in the client Kyren223 2025-01-24 21:33:44 +02:00
  • 8001ade3c2 Formatted and removed unused symbols, should pass CI Kyren223 2025-01-22 19:28:03 +02:00
  • aa929cb08f Fixed ellipsis in memberlist not being styled Kyren223 2025-01-22 19:24:08 +02:00
  • 8702aaac95 Each section in the client (network/frequency/member/chat) now has a different background color, similar to how discord has it Kyren223 2025-01-22 19:16:51 +02:00
  • 7e0bb07d61 Now displaying network ID below the network name, and can copy with "i" Kyren223 2025-01-22 18:40:50 +02:00
  • a6ea051460 Added the ability to trust/untrust users Kyren223 2025-01-22 17:23:18 +02:00
  • 645247f4ef format for ci Kyren223 2025-01-21 19:06:34 +02:00
  • c2b1df4e65 Added the ability to mute/unmute members Kyren223 2025-01-21 18:54:57 +02:00
  • c02511af29 Added the ability to kick someone by pressing "K" on his message in chat Kyren223 2025-01-21 18:23:57 +02:00
  • 8f87941f91 Added the ability to promote members to admins and demote admins to members Kyren223 2025-01-21 18:17:36 +02:00
  • 7a791d7e94 Admins can no longer ban/mute/kick each other, they can still delete each others messages (to save some time having to query the sender ID to see if he's an admin) Kyren223 2025-01-21 17:56:54 +02:00
  • ad58adeeb2 Fixed a bug where when kicking a member, it'd send a left request to the person who is kicking and not to the person who was kicked Kyren223 2025-01-21 17:40:19 +02:00
  • a91411fde4 Added kicking client side Kyren223 2025-01-21 17:25:16 +02:00
  • d85a00428d Fixed a bug where memberlist index will be reset on blur/focus Kyren223 2025-01-21 17:15:49 +02:00
  • 51489063d8 Setting a name when registering now sends a request to set the name to the server Kyren223 2025-01-20 17:41:19 +02:00
  • 5a5c092824 Implemented user settings both client side and server side Kyren223 2025-01-20 17:32:31 +02:00
  • ab36f88c0e Implemented member list Kyren223 2025-01-20 16:13:08 +02:00
  • 2b2c95acc9 Changed "u" to "e" for editing frequencies and networks to be consistent with chat messages Kyren223 2025-01-19 18:58:51 +02:00
  • b216b45e5b The border below the frequency name in chat is now focus-colored if the chat is focused Kyren223 2025-01-19 18:56:26 +02:00
  • abe7eabce9 Added frequency name at the top of chat (might flip the bg/fg later) Kyren223 2025-01-19 18:53:57 +02:00
  • 0a5ed18ac8 Added ellipsis when frequency name is too long to display to the user Kyren223 2025-01-19 18:19:45 +02:00
  • 7c4a45f413 Made UI more responsive Kyren223 2025-01-19 18:07:25 +02:00
  • 1b3b74464b Added edited indicator in chat and also the client now also allows to edit only your own messages not others Kyren223 2025-01-16 19:59:35 +02:00
  • 15067a81c5 Added client and server side edit message functionality Kyren223 2025-01-16 19:11:15 +02:00
  • 9ebd017160 Added visual indicators for chat when the frequency is read-only the viminput is grayed out and the cursor is hidden, when muted (untested) the viminput border is red, and when no access it's grayed and a message showing no perms instead of the "this frequency is empty", along with placeholders for "Send message..." that say that you are muted/don't have permission to write message Kyren223 2025-01-16 17:36:06 +02:00
  • 5bc8a1ff7a Gap lines in chat are now highlighted to better visualize scrolling Kyren223 2025-01-15 19:30:28 +02:00
  • adacdcd6f8 Fixed a few issues relating to max height Kyren223 2025-01-15 19:04:00 +02:00
  • 565487ccf1 Refactored chat scrolling to be better, still need to fix some things Kyren223 2025-01-15 18:02:00 +02:00
  • 2f1ee548be viminput can now be exited with ctrl+q in insert mode Kyren223 2025-01-14 19:14:18 +02:00
  • 58c6a6d38a Added the ability to delete messages in frequencies Kyren223 2025-01-14 19:09:18 +02:00
  • 2e1707c45b Fixed loading screen not animating after losing connection Kyren223 2025-01-14 17:55:19 +02:00
  • fd43d51d91 Fixed a bug where messages from no-access channels will propagate to online users even if they didn't have access Kyren223 2025-01-14 17:51:24 +02:00
  • 142d2d2c56 Client no longer shows popup if it doesn't have sufficient permissions to update a network or frequency Kyren223 2025-01-14 17:36:33 +02:00
  • 43bd630ecb Implemented updating frequency properties both client-side and server-side Kyren223 2025-01-14 17:33:15 +02:00
  • 016e8cfc3c Networks are now scrollable Kyren223 2025-01-14 17:02:51 +02:00