557 Commits

Author SHA1 Message Date
0ffeb67a3c User signals now support not selecting any signal (which is the default
on start to avoid "insta-reading" messages of the top isgnal)
2025-02-06 16:56:05 +02:00
242add420d Implemented network icon notifications for user signals icon 2025-02-06 16:45:59 +02:00
3c05ff0937 Added notifications display in user signals 2025-02-06 16:33:16 +02:00
f10f8396cc Added support for editing messages in user signals 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
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
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
2025-02-05 16:54:09 +02:00
9d1158f03e Implemented deleting messages in user signals 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
2025-02-04 19:37:06 +02:00
752403fd52 Implemented notifications rework on the client 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
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
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
2025-02-04 18:52:57 +02:00
42a1ee12c1 Fixed crash in user signals 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
2025-02-03 19:38:43 +02:00
7d9a1adb1e Added support for viw/vaw and viW/vaW in viminput 2025-02-03 19:29:16 +02:00
4ad772a1e9 Added v/V in visual/visual line modes to switch between the 2 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
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
2025-02-03 17:38:19 +02:00
c0013eba37 Fixed instances where viminput would still show the terminal background 2025-02-03 17:30:23 +02:00
a6cb16570e Pings now have a matching backgground if the user is effected by them 2025-02-03 17:14:35 +02:00
e8a7f654d7 Fixed edited messages still showing terminal bg 2025-02-03 17:03:13 +02:00
008d7cd0cd Added background for chat to avoid relying on terminal background 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
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
2025-02-02 19:23:50 +02:00
a1c20cbfc5 Corrected separator background to match the background of the section
they separate
2025-02-02 18:35:36 +02:00
b3e4eb11be Fixed rendering issue with pings in frequencylist 2025-02-02 18:30:22 +02:00
69bbde190e Reworked how frequency notifications work 2025-02-01 17:36:23 +02:00
0659bdaf81 Added a way to display notifications for networks 2025-02-01 16:51:10 +02:00
ac01dff4e7 Started working on notifications for networks (got to carried away with
how it looks lol)
2025-01-30 20:33:02 +02:00
088baa6d3a Implemented frequency-level notifications and pings 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
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
2025-01-30 16:44:11 +02:00
eac9e1ad09 Pressing enter will now properly update the border of viminput 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
2025-01-28 19:48:18 +02:00
f3bf8a9c5d Fixed recently introduced crash due to trying to access network info
while in user signals
2025-01-28 19:37:33 +02:00
2e9e0785c3 Fixed wrapping issues of placeholder in viminput and also re-phrased
some things
2025-01-28 19:33:51 +02:00
7abb46eb81 Fixed viminput border not updating instantly 2025-01-28 19:12:19 +02:00
9f6a91900e Fixed a bug where you could scroll infinitely down 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
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
2025-01-28 18:28:09 +02:00
b9cef4710b Simplified ping syntax by changing the prefix from @ping: to just @ 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
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
2025-01-27 20:25:49 +02:00
cb214d740a Added pings to messages in frequencies 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)
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
2025-01-26 19:10:46 +02:00
97a85f94e5 Added the ability to read and send messages between 2 users 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
2025-01-26 18:50:49 +02:00
a39fa91fe0 Added "i" to copy user ID in user signals 2025-01-26 18:47:35 +02:00