Commit graph

62 commits

Author SHA1 Message Date
7e9e441c1e Use Garmelon/vault 2023-02-23 14:41:10 +01:00
35a140e21f Make MsgStore fallible 2023-02-23 14:41:10 +01:00
374c4c4f79 Update euphoxide to version with id newtype wrappers 2022-09-26 10:20:47 +02:00
bc54184b13 Simplify function call 2022-09-10 01:03:02 +02:00
c07941b374 Log sql errors in vault 2022-09-09 22:04:23 +02:00
37df869695 Simplify code 2022-09-09 21:59:24 +02:00
cb1fdb41b8 Rename tree_id to root_id 2022-09-09 21:55:14 +02:00
da2c3d86f5 Move functions to EuphVault and add EuphRoomVault
This commit moves all euph_* functions from Vault to EuphVault. The
previous EuphVault is now called EuphRoomVault and re-exports all
room-based functions from the EuphVault. It also implements MsgStore.
2022-09-09 21:55:14 +02:00
ff56bb2678 Reduce vault code duplication with macros 2022-09-09 21:55:14 +02:00
d7e19b5eca Add message inspection popup 2022-09-09 00:02:02 +02:00
bb542ae08e Retrieve individual messages from store 2022-08-29 22:57:02 +02:00
36b717ff8c Use euphoxide instead of euph module 2022-08-18 18:13:49 +02:00
6dc7d2bd0b Placate clippy 2022-08-17 23:06:49 +02:00
692a167143 Fix crash when joining new rooms 2022-08-11 22:58:45 +02:00
186ca5ea5a Add json export 2022-08-10 03:08:06 +02:00
8a28ba7b6e Move euph_trees logic into sqlite triggers 2022-08-09 01:09:20 +02:00
fa7d904932 Fix formatting 2022-08-09 00:50:21 +02:00
453233be9c Cache unseen message count 2022-08-09 00:41:17 +02:00
888870b779 Show unseen message count in room list 2022-08-08 23:14:58 +02:00
9e99c0706a Improve mark-older-as-unseen performance 2022-08-08 21:31:12 +02:00
bfc221106d Move to prev/next unseen message 2022-08-08 21:31:12 +02:00
05ce069121 Fix reinserting existing messages overwriting seen 2022-08-08 21:31:12 +02:00
cee91695e0 Mark older messages as seen instead 2022-08-08 21:31:12 +02:00
573f231466 Mark all messages as seen 2022-08-08 21:31:12 +02:00
ff4118e21d Query and set seen status via store 2022-08-08 15:14:50 +02:00
20ec6ef3b3 Set messages' seen status when adding to vault 2022-08-08 15:14:50 +02:00
f430b0efc7 Fix db inconsistencies when deleting a room
Since the euph_trees table can't have any foreign key constraints
pointing to the euph_rooms table, deleting a room wouldn't delete that
room's trees in euph_trees. Upon reconnecting to the room, those trees
would then be displayed as placeholder messages without children.
2022-08-07 00:55:54 +02:00
1f19b4cdf5 Query store chronologically 2022-08-03 02:02:06 +02:00
b57c70dd01 Store room times as epoch time
Resets migrations because nobody except me is using cove anyways and
this is easier than keeping backwards compatibility.
2022-08-03 00:22:07 +02:00
00bcdddc62 Enable some warnings 2022-08-02 02:17:37 +02:00
9ac646174c Fix some warnings 2022-08-02 01:38:32 +02:00
ac2602c4b8 Rename second euph Message to SmallMessage 2022-08-01 20:05:50 +02:00
4ac0b5f074 Make new ChatMsg trait for Chat message rendering 2022-08-01 19:57:05 +02:00
297d62d173 Rename parameters for consistency 2022-07-31 20:03:14 +02:00
f501170d2c Remove unnecessary async-s 2022-07-24 19:02:56 +02:00
7d32a7ebe0 Store cookie jars in euph vault 2022-07-24 18:47:21 +02:00
282609916a Rename some methods for consistency 2022-07-24 17:45:29 +02:00
8bc7af0d3f Replace chrono dependency by time 2022-07-24 17:27:58 +02:00
d638ba2887 Get last possible Msg id 2022-07-19 17:04:44 +02:00
0ccf788d7b Add option to export plain text room logs 2022-07-07 03:41:44 +02:00
93cc2a6c13 Switch to new toss commit 2022-07-04 19:50:07 +02:00
11422801b0 Display nicks with hashed color 2022-07-02 17:23:30 +02:00
e1ef195198 Fix ping pong 2022-06-30 15:16:37 +02:00
6fbc0c5ff7 Render and interact with individual rooms 2022-06-28 10:24:20 +02:00
9cd7ee008d Store time of first and last join for each room 2022-06-27 10:34:13 +02:00
19d9a19c06 Delete existing rooms 2022-06-27 10:19:17 +02:00
365b3fffd0 Fix unique constraint violation when joining 2022-06-27 09:50:56 +02:00
6c26f62008 Create room table for easier room deletion 2022-06-26 16:43:05 +02:00
d44a7faf61 Trim message content before displaying 2022-06-25 11:47:14 +02:00
8bdd626909 Fix query for last span 2022-06-25 11:43:14 +02:00