49af4e44f7
Update xmpp (tokio-xmpp, jid) deps
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-10-26 00:48:24 +02:00
bad6a425a8
component/test: fmt
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-10-26 00:47:27 +02:00
4c9165a602
README: Add note about MUC/Companion burner JID
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-06-06 23:56:40 +02:00
c4dee64cfe
TestComponent: Display 'actual' as green when stanza match
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-01-07 17:22:08 +01:00
41da68bd5e
Room::change_nickname: avoid duplicating presence broadcast
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-01-07 16:42:13 +01:00
8cee98288b
TestComponent: Remove hl_bg method
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-01-07 16:02:40 +01:00
6692443b18
TestComponent: implement word-diff
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-01-07 15:44:15 +01:00
d3e013a999
TestComponent: ensure env_logger is initialized correctly
...
This is probably not the right place for it but I'm not sure where else
to put it.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-01-06 12:25:45 +01:00
5ef59d9197
TestComponent: Add syntax highlighting behind RUST_LOG
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-01-05 16:55:34 +01:00
3cf1d76b16
README: [x] Nick changes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-01-02 21:11:07 +01:00
18050c1185
Merge MSN sessions on nick changes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-01-02 21:08:51 +01:00
3f90060c08
Return error on nickname conflict
...
Fixing the 'join_nick_already_assigned' test on the way.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-01-01 23:01:01 +01:00
1a5101c9b2
First pass for nickname changes
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2023-01-01 22:06:01 +01:00
efe6c913a1
Add .editorconfig
...
ci/woodpecker/push/woodpecker Pipeline failed
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-28 10:32:43 +01:00
60162bc89e
README: convert to tabs
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-28 10:32:33 +01:00
715be76472
Set hard_tabs = true in rustfmt
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-28 10:13:30 +01:00
27a0e1523d
muc::user::Item Use parsers' new helpers
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 18:15:31 +01:00
6f7f55a72f
Change name of the project to muchrooms
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 11:41:41 +01:00
5be165e08a
Cargo.toml: Add myself as author
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 11:41:05 +01:00
ff9e172927
test/templates: change new_room signature
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 11:15:30 +01:00
ce640864ca
Session::filter_presence: block muc#admin; add TODO
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 09:40:35 +01:00
c159f0b735
CI: try moving clippy in testing stage
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 09:19:46 +01:00
c50e3adec6
CI: fail on clippy warnings
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 09:14:03 +01:00
c9be530c56
tests: Remove redundant info in names
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 08:47:15 +01:00
9bd4adc880
tests/presence: Split MSN tests
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 08:44:29 +01:00
7472bc1398
tests/presence: implement updated_joined
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 00:33:39 +01:00
db764b18f7
session: implement filter_presence
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-27 00:21:10 +01:00
1b74fce690
Occupant: Allow any session to be updated always
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-26 16:54:06 +01:00
cca88740c7
Session: restore PartialEq impl as it was
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-26 16:39:25 +01:00
5239a19871
Use PresenceFull where necessary
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-26 15:02:45 +01:00
65c7383745
session: Remove two FullJids from Session
...
They're already stored in the presence we own and we can get them for
free.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-26 14:59:09 +01:00
6e73112251
handlers: split presence handler
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-26 14:20:49 +01:00
28186d77d2
presence: PresenceFull newtype
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-26 14:20:49 +01:00
38838991c0
Use 'primary' for MSN terminology instead of 'leader'
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-25 00:40:14 +01:00
b0fe077449
tests/presence: test_presence_leave_msn
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-23 22:52:45 +01:00
a86a85cf19
test/templates: new_room method
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-23 22:43:09 +01:00
6fb526a14c
README: Update checklist with new features and new TODOs
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-17 16:58:25 +01:00
d0570afeaf
Update deprecated chrono::east call to east_opt
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-17 14:12:50 +01:00
9b7d3fd9f9
Reject presence updates when not joined (gc1 joins)
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-17 14:06:06 +01:00
132757c8b3
handlers: pinging room unsupported until affiliations are implemented
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-16 10:23:56 +01:00
2a2d8cd051
Split Occupant and Session into their own module
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-08 12:05:28 +01:00
1463a55d3f
TestComponent: Make order of stanza unimportant across different resources
...
Split expected stanza by resource thus rendering order of stanza across
different resource unimportant.
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-12-05 21:00:15 +01:00
2b6a151f7e
room: Remove derived Eq on Session
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-11-30 17:26:54 +01:00
1ada7f8bf4
tests/presence: todo!(): test_presence_update_not_joined, test_presence_leave_msn
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-10-16 21:39:57 +02:00
a2cc7857b7
room: test_occupant_update_presence
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-10-16 19:38:49 +02:00
fc880c7423
Occupant now takes a presence; new Session struct
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-10-16 15:08:23 +02:00
43d2697aaa
error: Add Error::Jid(Box<JidParseError>)
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-10-16 10:57:24 +02:00
4d00060817
TestComponent: Display assert errors as Display not Debug for easier xml coloring
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-10-15 19:05:12 +02:00
dc9a56857c
room/Occupant: Add docstrings
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-30 18:39:00 +02:00
d94d472b9d
error: add docstrings
...
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-30 17:10:52 +02:00