matrix-rust-sdk/matrix_sdk_base/src
Austin Ray 59c8652ce8
base: fix empty room name calculation
Step 3.iii of the naming algorithm[0] covers name calculation for empty
rooms; however, it isn't an else condition for steps 3.i and 3.ii. It's a
final conditional in the algorithm before returning the name. The
current implementation treats it as an else condition.

To fix this, use step 3.i and 3.ii to calculate a room name then check
if the user is alone. If alone, return "Empty room (was...)" containing
any former member names. If alone and there aren't any former members,
return "Empty room"

Fixes #133

[0] https://matrix.org/docs/spec/client_server/latest#calculating-the-display-name-for-a-room
2021-05-21 19:18:11 -04:00
..
rooms base: fix empty room name calculation 2021-05-21 19:18:11 -04:00
store base: Correctly get the user ids of all room members 2021-05-18 08:29:10 +02:00
client.rs Upgrade ruma 2021-05-15 17:22:32 +02:00
error.rs Add use_small_heuristics option and run fmt 2021-05-12 15:37:29 -04:00
lib.rs Add rustfmt config file and run over workspace 2021-05-12 15:36:52 -04:00
session.rs Add rustfmt config file and run over workspace 2021-05-12 15:36:52 -04:00