Commit graph

72 commits

Author SHA1 Message Date
4e2b597f1e Fix waiting rooms being sorted to bottom 2023-03-17 18:27:21 +01:00
65fa1b8afd Update euphoxide
This fixes authentication for rooms requiring passwords
2023-02-26 21:21:26 +01:00
293112777a Fix bugged room state from lingering connection
When disconnecting from a room whose instance is "waiting" and then
reconnecting, the old instance would not be stopped immediately.
Instead, it would continue to run until it managed to reconnect, sending
status updates to the main event bus in the process.

These events led to the euph::Room entering a state where it was
connected but no last_msg_id was set. This meant that no new messages
could be entered into the vault, including messages sent by the user.
The result was UI weirdness when sending a message.

As a fix, euphoxide instances are now identified via an u32 id. This id
is unique across all rooms. Packets by unknown ids are rejected and have
no effect on room states.
2023-02-23 14:41:10 +01:00
7e9e441c1e Use Garmelon/vault 2023-02-23 14:41:10 +01:00
b6d69ce0b5 Fix sort order for rooms waiting to reconnect 2023-01-24 18:23:06 +01:00
8dd5db5888 Switch euph::Room to use euphoxide's Instance 2023-01-23 22:49:34 +01:00
23352e7027 Rename "status" to "state" in most places
This follows the name change of euphoxide, which renamed its connection
Status to State.
2023-01-20 21:45:30 +01:00
9324517c56 Update euphoxide 2023-01-20 19:33:52 +01:00
20186bda5c Satisfy clippy 2023-01-05 14:21:50 +01:00
7dfa8c6048 Make initial rooms sort order configurable 2022-09-26 20:34:45 +02:00
5ed0cd5f3f Update euphoxide to version with partial sessions 2022-09-26 16:56:38 +02:00
c16ad024ed Extract list key bindings to util
Also refactors the Rooms event handling code a bit
2022-09-25 22:34:41 +02:00
9aac9f6fdd Add error popup when external editor fails 2022-09-25 18:57:59 +02:00
bc54184b13 Simplify function call 2022-09-10 01:03:02 +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
d92c7cb98e Add room deletion confirmation popup 2022-09-08 22:57:04 +02:00
21245a8274 Use absolute paths in key! macro 2022-08-30 17:25:50 +02:00
03ddc5eb9b Add rooms keybindings around autojoin rooms 2022-08-30 15:09:06 +02:00
73a0971c34 Add 'offline' config option to turn off autojoin 2022-08-27 17:03:31 +02:00
04581f9158 Add 'euph.rooms.<name>.autojoin' config option 2022-08-27 15:09:53 +02:00
74561c791b Add key bindings to dis-/connect from/to all rooms 2022-08-27 14:51:15 +02:00
ac13f4b490 Add key binding to change rooms sort order 2022-08-27 14:37:34 +02:00
6e6fddc0b1 Add 'euph.rooms.<name>.password' config option 2022-08-25 22:49:34 +02:00
19d75a1d15 Add enum for room status
This way, it is far easier to understand what the different values mean
2022-08-21 00:35:17 +02:00
6c637390e4 Use popup widget builder 2022-08-20 23:17:48 +02:00
5d5f55107a Show error popups on some server errors 2022-08-20 21:22:33 +02:00
ded927b9f0 Overhaul UI event handling 2022-08-20 18:36:20 +02:00
037bed698c Make room list heading always visible 2022-08-19 23:26:49 +02:00
36b717ff8c Use euphoxide instead of euph module 2022-08-18 18:13:49 +02:00
80dad00125 Fix crash when connecting to some types of room 2022-08-17 23:04:43 +02:00
5ad9f0f3e7 Include pastes in input events 2022-08-10 23:59:08 +02:00
fa91515a61 Move euph room ui to new euph module 2022-08-10 22:35:30 +02:00
9314e29b0e Fix unseen message count not appearing initially
When launching cove, the euph_rooms hash map would be empty until
interacting with a room for the first time. This led to the unseen
message count only being displayed after interacting with a room. Now,
missing rooms are inserted into euph_rooms during stabilization.
2022-08-09 00:50:07 +02:00
888870b779 Show unseen message count in room list 2022-08-08 23:14:58 +02:00
a2b9f57a09 Fix room and nick dialog padding 2022-08-07 00:55:54 +02:00
bfbdec4396 Move editor key handling to one place 2022-08-06 23:39:56 +02:00
c4d3f5ba4d Move cursor in message editor vertically 2022-08-06 23:39:56 +02:00
d97dff07e4 Add note about F1 to empty rooms list 2022-08-04 17:16:44 +02:00
a0f2f9500c Fix ? not working in normal room view 2022-08-04 17:03:38 +02:00
6c1ce49236 Show available key bindings with F1/? 2022-08-04 17:02:54 +02:00
20ea96f83e Match key events using macros 2022-08-04 01:05:08 +02:00
2d1c953250 Update toss 2022-08-01 19:13:06 +02:00
f3b804347d Make room list behave more like chat
Accomplished by adding the same cursor movement and scrolling key
bindings, as well as moving the cursor so it is visible when scrolling.
2022-08-01 01:42:58 +02:00
c6b0193849 Fix background leaking through popups 2022-07-24 22:24:07 +02:00
73cb568702 Fix not being able to close nick dialog 2022-07-23 23:45:01 +02:00
7818855cb6 Restrict room connection dialog characters 2022-07-23 22:59:45 +02:00
8a8c50028f Add padding to room connection dialog 2022-07-23 22:34:40 +02:00
f1899ab295 Add inline editor for connecting to new rooms 2022-07-23 22:09:05 +02:00
709ab07442 Make List widget naming more consistent 2022-07-23 19:50:49 +02:00
f1b7ef0b98 Keep room UI state when disconnecting 2022-07-21 17:32:49 +02:00