matrix-rust-sdk/matrix_sdk_base
Austin Ray c90e8ab483
base: use correct bound in naming algorithm
Step 3.ii of the name calculation algorithm[0] specifies the conditional
as `heroes < invited + joined - 1 AND invited + joined > 1`. However,
current implementation uses `invited + joined - 1 > 1` in the
conditional, which can trigger the conditional if the user is alone.

Correct this by using two variables representing `invited + joined` and
`invited_joined - 1` and updating the conditional. `invited + joined` is
kept as a variable since step 3.iii uses it for its conditional.

[0] https://matrix.org/docs/spec/client_server/latest#calculating-the-display-name-for-a-room
2021-05-21 14:51:59 -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: use correct bound in naming algorithm 2021-05-21 14:51:59 -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

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.