26 Commits

Author SHA1 Message Date
959290d2ff Fix writing a message to an offline user causes an error log on the
backend
2025-08-09 10:47:41 +03:00
e6e1b6f86b Updated copyright 2025-08-04 11:38:07 +03:00
aa1fab53af Added copyright and AGPL notice to all source code files 2025-07-20 16:34:18 +03:00
f793203e04 Added session duration metrics with device analytics along with device
analytics metrics in the DB to aggregate and DeviceID abuse prevention
2025-07-19 18:32:12 +03:00
ba47118e51 Replaced most log statements with slog on the server 2025-07-19 18:32:12 +03:00
bbd4eae95f Added better logging for packets and payloads and now the writer is
responsible for packaging into a packet the payload (instead of everyone
who sends to the writer)
2025-07-06 18:20:46 +03:00
f80cb4a0fe Implemented server-side authentication in accordance to the protocol 2025-07-06 14:40:32 +03: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
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
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
5117d4ddda Fixed server crash due to accidental printing of a session address that
is nil
2025-01-25 17:15:23 +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
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
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
b09a8fba64 Fixed everything on the server-side 2025-01-09 19:14:05 +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
614cc4d9da Implemented joining functionality 2025-01-04 18:35:44 +02:00
bfc65f7f37 Minor improvements to server code 2024-12-01 16:13:46 +02:00
e00a17a2f4 Added swap frequencies support on server-side 2024-12-01 16:03:31 +02:00
0aa83227da Fixed color issue on the server, made the UI have better UX 2024-11-27 17:44:38 +02:00
be22bb89db Added create network to server api 2024-11-27 17:34:28 +02:00