559306a33c
The new algorithm is simpler. Instead of tracking a list of disambiguated display names in `Room`, we instead track the display name ambiguity status in `RoomMember`. This allows a client to generate the correct name for a member using solely the information available in `RoomMember`. The disambiguation algorithm itself now only calculates the set of members whose ambiguity status had changed instead of producing disambiguated display names for everyone affected. This is called on each room entry (join or invite), room entry and profile change, and the updates are propagated to the affected `RoomMember`s.
48 lines
1.5 KiB
TOML
48 lines
1.5 KiB
TOML
[package]
|
|
authors = ["Damir Jelić <poljar@termina.org.uk>"]
|
|
description = "The base component to build a Matrix client library."
|
|
edition = "2018"
|
|
homepage = "https://github.com/matrix-org/matrix-rust-sdk"
|
|
keywords = ["matrix", "chat", "messaging", "ruma", "nio"]
|
|
license = "Apache-2.0"
|
|
name = "matrix-sdk-base"
|
|
readme = "README.md"
|
|
repository = "https://github.com/matrix-org/matrix-rust-sdk"
|
|
version = "0.1.0"
|
|
|
|
[features]
|
|
default = ["encryption", "sqlite-cryptostore", "messages"]
|
|
messages = []
|
|
encryption = ["matrix-sdk-crypto"]
|
|
sqlite-cryptostore = ["matrix-sdk-crypto/sqlite-cryptostore"]
|
|
|
|
[dependencies]
|
|
async-trait = "0.1.31"
|
|
serde = "1.0.110"
|
|
serde_json = "1.0.53"
|
|
zeroize = "1.1.0"
|
|
tracing = "0.1.14"
|
|
|
|
matrix-sdk-common-macros = { version = "0.1.0", path = "../matrix_sdk_common_macros" }
|
|
matrix-sdk-common = { version = "0.1.0", path = "../matrix_sdk_common" }
|
|
matrix-sdk-crypto = { version = "0.1.0", path = "../matrix_sdk_crypto", optional = true }
|
|
|
|
# Misc dependencies
|
|
thiserror = "1.0.19"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
|
|
version = "0.2.21"
|
|
default-features = false
|
|
features = ["sync", "fs"]
|
|
|
|
[dev-dependencies]
|
|
matrix-sdk-test = { version = "0.1.0", path = "../matrix_sdk_test" }
|
|
http = "0.2.1"
|
|
tracing-subscriber = "0.2.5"
|
|
tempfile = "3.1.0"
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
|
|
tokio = { version = "0.2.21", features = ["rt-threaded", "macros"] }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
|
|
wasm-bindgen-test = "0.3.12"
|