Commit graph

54 commits

Author SHA1 Message Date
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
7e9e441c1e Use Garmelon/vault 2023-02-23 14:41:10 +01:00
35a140e21f Make MsgStore fallible 2023-02-23 14:41:10 +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
1ee82eaed0 Use esc to leave nick list focus 2022-09-26 21:24:58 +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
f109fd0d9b Move cursor in nick list 2022-09-25 22:35:05 +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
d5c0c94883 Remove and add todos 2022-09-25 20:02:36 +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
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
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
a091855ea3 Fix links key binding masking editor key bindings 2022-08-30 03:05:37 +02:00
JRF
a1043eafd3 Add key bindings to select and open links 2022-08-29 19:00:42 -05:00
c09608d1f8 Open link popup via key binding 2022-08-30 00:30:08 +02:00
ac13f4b490 Add key binding to change rooms sort order 2022-08-27 14:37:34 +02:00
6150d05255 Add 'euph.rooms.<name>.force_username' config option 2022-08-25 23:19:40 +02:00
d0ba210855 Add 'euph.rooms.<name>.username' config option 2022-08-25 23:03:33 +02:00
6e6fddc0b1 Add 'euph.rooms.<name>.password' config option 2022-08-25 22:49:34 +02:00
669e52a2ee Add key binding to download more logs 2022-08-22 21:15:49 +02:00
f76c6a557d Remove key binding A as alias for a while joining room 2022-08-22 20:36:30 +02:00
8128342099 Implement account login and logout 2022-08-22 17:25:21 +02:00
84930c8c34 Add focus and hiding options to editor 2022-08-22 17:15:09 +02:00
d25873f3c6 Fix auth failure popup not showing up 2022-08-21 02:54:18 +02:00
10ea7d13fd Refactor room key binding code a bit 2022-08-21 02:42:29 +02:00
235fd9acc5 Move stability checks back into room 2022-08-21 02:38:45 +02:00
878467835e Extract auth dialog into module 2022-08-21 02:36:30 +02:00
9ad550f98c Extract nick dialog into module 2022-08-21 02:30:12 +02:00
4e0509b08e Extract nick list rendering into module 2022-08-21 02:14:29 +02:00
07fab96e12 Fix not being able to leave connected rooms 2022-08-21 01:42:03 +02:00
c661984d1c Hide password while authenticating 2022-08-21 01:41:52 +02:00
7b52add24e Add password authentication dialog 2022-08-21 01:19:07 +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
ab36df3c2b Add error popups to room UI 2022-08-20 21:05:24 +02:00