matrix-rust-sdk/matrix_sdk_base
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
..
.cargo matrix-sdk: Add missing newlines at the end of some files. 2020-05-12 15:48:17 +02:00
examples Add use_small_heuristics option and run fmt 2021-05-12 15:37:29 -04:00
src base: fix empty room name calculation 2021-05-21 19:18:11 -04:00
Cargo.toml chore: bump ruma 2021-04-26 08:05:58 +02:00
README.md matrix-sdk: Add a bunch of readmes to the crates. 2020-05-26 19:33:13 +02:00

README.md

Build Status codecov License #matrix-rust-sdk

matrix-sdk-base

matrix-rust-sdk is an implementation of a Matrix client-server library in Rust.

NOTE: This is the no IO client state machine, you're probably interested in the main rust-sdk crate.