Damir Jelić
0edef38eb7
base: Fix some clippy warnings
2021-01-02 13:54:47 +01:00
Damir Jelić
0c81f3d9ae
base: Add a method to get all joined members.
2021-01-01 14:58:44 +01:00
Damir Jelić
4d7da05b90
base: Store the sync token.
2021-01-01 14:54:52 +01:00
Damir Jelić
d121a856c4
base: Remember the direct target for rooms.
2021-01-01 14:31:50 +01:00
Damir Jelić
2384069641
base: Add the normalized_power_level method back to the member.
2020-12-24 17:14:46 +01:00
Damir Jelić
a29d2e39c4
base: Save profiles independently from membership events.
...
The sender controls the content of the membership event, since the
content contains profile data (display names, avatar urls) a sender
might incorrectly change the profile of another member inside the room.
This is allowed in the case where the sender is kicking or inviting the
member, this it will self heal once the member re-joins. Still, to
mitigate this a bit we're storing the profile data when we know that the
member sent out the content on their own.
2020-12-24 16:35:32 +01:00
Damir Jelić
e25441babc
base: Create a store wrapp and move store methods under it.
2020-12-20 16:27:29 +01:00
Damir Jelić
f9af880176
base: Upcast the bare rooms based on the membership state
2020-12-19 16:37:35 +01:00
Damir Jelić
b05fed5a3b
matrix-sdk: Fix our tests now that the state store is roughly done.
2020-12-15 10:23:31 +01:00
Damir Jelić
b4edaffbe1
base: Rename the method to get joined/invited members.
2020-12-14 15:54:49 +01:00
Damir Jelić
45db95742a
base: Add a common room info struct for normal and stripped rooms.
2020-12-14 14:53:50 +01:00
Damir Jelić
3a76cf7692
base: Restore getting the user ids when receiving a sync.
2020-12-14 13:48:29 +01:00
Damir Jelić
05b1384d16
base: Upcast member events so the state key is an user id.
2020-12-12 21:44:53 +01:00
Damir Jelić
e245599913
base: Save the stripped state of invited rooms.
2020-12-11 21:17:27 +01:00
Damir Jelić
b16e3b6bd8
base: Rename joined rooms as they are used for left rooms as well.
2020-12-11 16:42:38 +01:00