Commit Graph

94 Commits

Author SHA1 Message Date
f10f8396cc Added support for editing messages in user signals 2025-02-05 20:00:29 +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
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
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
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
cb214d740a Added pings to messages in frequencies 2025-01-27 20:10:48 +02:00
97a85f94e5 Added the ability to read and send messages between 2 users 2025-01-26 19:09:02 +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
2025-01-25 19:09:37 +02:00
5c96cb4e60 Added banlist on the client and fixed some server side issues with
banning
2025-01-25 18:26:17 +02:00
acf87efce9 Added the ability to ban client-side from the memberslist 2025-01-25 17:21:04 +02:00
5117d4ddda Fixed server crash due to accidental printing of a session address that
is nil
2025-01-25 17:15:23 +02:00
02e55d769d Added a list of banned members server-side 2025-01-25 16:30:50 +02:00
0da7603a41 Getting banned will now also kick the member from the network 2025-01-25 16:08:48 +02:00
a6ea051460 Added the ability to trust/untrust users 2025-01-22 17:23:18 +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)
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
2025-01-21 17:40:19 +02:00
5a5c092824 Implemented user settings both client side and server side 2025-01-20 17:32:31 +02:00
15067a81c5 Added client and server side edit message functionality 2025-01-16 19:11:15 +02:00
58c6a6d38a Added the ability to delete messages in frequencies 2025-01-14 19:09:18 +02:00
fd43d51d91 Fixed a bug where messages from no-access channels will propagate to
online users even if they didn't have access
2025-01-14 17:51:24 +02:00
43bd630ecb Implemented updating frequency properties both client-side and server-side 2025-01-14 17:33:15 +02:00
8184c8d187 Added a way to change network properties both server side and client
side
2025-01-14 16:31:32 +02:00
36aaaf8d92 Fixed security vulnerability where you could read "no access"
frequencies even if you were a normal user and not an admin
2025-01-13 19:02:19 +02:00
bad60b37d0 Added frequency propagation on the server-side and fixed a bug where
permission 3 would be valid even though it's not
2025-01-13 18:38:17 +02:00
bff19b516e Fixed network positioning issues 2025-01-12 17:57:54 +02:00
f0365e5438 Removed debug prints 2025-01-12 16:48:47 +02:00
8cdd763ec1 Fixed a bunch of security issues with people not inside a server being
able to read it and also fixed some other bugs and implemented
propagation for members joining/leavings servers
2025-01-12 16:46:07 +02:00
2285afec99 Implemented message propagation for real-time live chat 2025-01-10 20:13:31 +02:00
a1d35ab5b5 Fixed gosec warning 2025-01-10 17:48:55 +02:00
4bff6ccf4e Removed set from networks info as it'll be redundant due to no longer
keeping track of position
2025-01-10 15:20:31 +02:00
b09a8fba64 Fixed everything on the server-side 2025-01-09 19:14:05 +02:00
936d3cf690 Added goose for migrations, refactored SQL schema, server and client
are broken
2025-01-09 17:28:46 +02:00
b517a11771 Actually fixed gosec (it is apparently space sensitive yay) 2025-01-09 15:13:31 +02:00
566980d1e2 Fixed gosec issues 2025-01-09 15:09:44 +02:00
576adb547c Implemented CD 2025-01-08 23:20:38 +02:00
dbea21d9c3 Fixed all gosec issues 2025-01-07 19:05:58 +02:00
4e2ca64319 Fixed all high and medium security issues from gosec 2025-01-07 19:02:14 +02:00
121feb261c Fixed linting issues, should now pass in CI 2025-01-07 18:19:23 +02:00
06a15e6c70 Refactored to better embed the certifcates and also made sure to read at
runtime the server.key instead of containing it in the server's
executable using go embed
2025-01-07 17:21:02 +02:00
14caa1959c Network deletion now propagates to all active connections that are in
that network
2025-01-06 18:31:27 +02:00
63790c069f Server and client now properly handle the same user logging in from
different locations, fixed the issue where it'd only work for the first
time by checking if the addresses match before remove the session
2025-01-06 18:23:41 +02:00
1a218730e9 Server now disconnects connection when a new connection matches the same
user ID, note that there seems to be a weird thing where if 2 clients
are from the same IP, the disconnected client will just reconnect to the
new client's socket, so they will both use the same connection for
communication
2025-01-06 17:34:47 +02:00
547593d315 Fleshed out and fixed issues in both the server and client for how
networks and members work
2025-01-06 16:17:59 +02:00
6be63e6df6 Refactored quite a bit and added the MembersInfo packet server-side 2025-01-05 18:11:14 +02:00
73935243e3 Fixed server so it compiles 2025-01-04 19:09:23 +02:00
614cc4d9da Implemented joining functionality 2025-01-04 18:35:44 +02:00
1b15db0fe9 Fixed issues with frequencies (I think) 2024-12-24 18:54:26 +02:00