Commit graph

263 commits

Author SHA1 Message Date
923e68c0b5 Always show rooms from config in rooms list 2023-04-10 12:25:17 +02:00
4e2b597f1e Fix waiting rooms being sorted to bottom 2023-03-17 18:27:21 +01:00
0612d235d7 Recognize links without scheme 2023-03-07 14:25:09 +01:00
da3d84c9d8 Fix connecting to rooms as bot instead of human 2023-03-04 22:00:37 +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
fb164eeaa9 Add todos 2023-02-23 14:41:10 +01:00
7e9e441c1e Use Garmelon/vault 2023-02-23 14:41:10 +01:00
35a140e21f Make MsgStore fallible 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
16011a267d Display colon-delimited emoji in nicks 2023-01-20 20:19:03 +01:00
9324517c56 Update euphoxide 2023-01-20 19:33:52 +01:00
f61c03cf0a Remove redundant vault 2023-01-14 17:46:05 +01:00
acb03b1f09 Open room present link with p 2023-01-14 17:45:46 +01:00
20186bda5c Satisfy clippy 2023-01-05 14:21:50 +01:00
5acf49d018 Simplify lints 2022-12-11 20:36:41 +01:00
1ee82eaed0 Use esc to leave nick list focus 2022-09-26 21:24:58 +02:00
7dfa8c6048 Make initial rooms sort order configurable 2022-09-26 20:34:45 +02:00
61a9cc10f1 Update toss to version with separate widthdb 2022-09-26 17:36:49 +02:00
5ed0cd5f3f Update euphoxide to version with partial sessions 2022-09-26 16:56:38 +02:00
374c4c4f79 Update euphoxide to version with id newtype wrappers 2022-09-26 10:20:47 +02:00
2d88513a28 Add message inspection popup 2022-09-25 23:18:18 +02:00
bbf6371f87 Reorganize key bindings list a bit 2022-09-25 22:50:45 +02:00
5d1252faae Fix nick list cursor rendering 2022-09-25 22:39:33 +02:00
f109fd0d9b Move cursor in nick list 2022-09-25 22:35:05 +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
30276fcbbf Display nick list cursor 2022-09-25 22:22:01 +02:00
75e3a08b58 Display chat cursor only when chat has focus 2022-09-25 22:22:01 +02:00
9c9d9a51bb Switch focus using tab
Also refactored some key event handling code in the process.
2022-09-25 22:22:01 +02:00
8703a62887 Track focus in room 2022-09-25 20:03:03 +02:00
147c3eaf92 Clean up use of Size 2022-09-25 20:02:38 +02:00
d5c0c94883 Remove and add todos 2022-09-25 20:02:36 +02:00
4dde87d805 Fix list cursor when item moves off-screen
When a list scrolls or changes in such a way that the cursor item moves
off-screen, the cursor would jump to the closest visible item.

It makes more sense for the cursor to remain on its selected item and
for the list to scroll instead. That way, it is less likely for the user
to perform an action on the wrong list item if they press a key while
the list is changing.
2022-09-25 19:35:58 +02:00
9aac9f6fdd Add error popup when external editor fails 2022-09-25 18:57:59 +02:00
4c7ac31699 Fix inspect message only working when connected 2022-09-16 00:47:20 +02:00
bc54184b13 Simplify function call 2022-09-10 01:03:02 +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
d7e19b5eca Add message inspection popup 2022-09-09 00:02:02 +02:00
d92c7cb98e Add room deletion confirmation popup 2022-09-08 22:57:04 +02:00
f49481cb10 Fix cursor disappearing in editor 2022-09-08 22:05:46 +02:00
19febc188e Remove unnecessary mut-s 2022-08-30 17:32:57 +02:00
21245a8274 Use absolute paths in key! macro 2022-08-30 17:25:50 +02:00
5eeabea2de Add todos 2022-08-30 17:17:11 +02:00
03ddc5eb9b Add rooms keybindings around autojoin rooms 2022-08-30 15:09:06 +02:00
a091855ea3 Fix links key binding masking editor key bindings 2022-08-30 03:05:37 +02:00
37b04c7eba Open links via number shortcuts 2022-08-30 02:32:29 +02:00
7932c2f20b Show message when no links were found 2022-08-30 02:32:08 +02:00