Commit graph

14 commits

Author SHA1 Message Date
c438402b15 TestComponent: assert closer to callsite
Attempts to assert closer to callsite to make it easier to debug. This
requires that we also pay attention to remaining items in the
expect_buffer. This check is done on Drop.

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-24 01:46:32 +02:00
a2de3de6d0
room: split test_broadcast_presence
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-24 00:50:50 +02:00
74214352bd
Room::broadcast_presence: change parameters again
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-23 23:02:44 +02:00
ee4ea6dd9a Room: simplify add_session; abstract away send_subject
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-23 22:53:38 +02:00
3b49a5ae40
Add broadcast_presence method
Also add bits of the next commit because there are too many changes now
and I failed to properly dissociate with add -p :(

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-23 22:46:22 +02:00
f2c8e74ef4
Return SessionAlreadyExists error in Occupant::add_session
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-23 18:46:42 +02:00
307a888a0b
DateTime::from_utc isn't being merged in parsers
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-17 16:31:12 +02:00
3935d68d7e
error/MismatchJids: take both jids
So it's possible to see directly which jids are conflicting

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-17 16:23:53 +02:00
2f35111210
Broadcast new occupant presence to existing occupants
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-12 00:53:29 +02:00
d383aa8655 We can now leave rooms!
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-12 00:48:04 +02:00
b7ee30c3f7
Add test for joining an existing room
- Send affiliation/role in occupant presence. Always the same for now.
- Send one presence per occupant (might changer again later on)
- Store subject in Room. Store participant/date alongside subject

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-12 00:22:36 +02:00
29b952a726
tests: ensure occupants count is correct
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-11 13:10:09 +02:00
afd1f23ac3
Add test_0045_join_presence_nick_already_assigned
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-11 13:10:01 +02:00
35e323f448
Rename types module to room
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
2022-09-10 18:37:15 +02:00
Renamed from src/types.rs (Browse further)