Merge branch 'room-fix-fullyread' into 'master'

[Room] Fix fullyRead

See merge request famedly/famedlysdk!71
This commit is contained in:
Marcel 2019-09-03 14:39:47 +00:00
commit ed9e0caea5

View file

@ -50,21 +50,27 @@ class Room {
/// The count of highlighted notifications. /// The count of highlighted notifications.
int highlightCount; int highlightCount;
/// A token that can be supplied to the from parameter of the rooms/{roomId}/messages endpoint.
String prev_batch; String prev_batch;
/// The users which can be used to generate a room name if the room does not have one.
/// Required if the room's m.room.name or m.room.canonical_alias state events are unset or empty.
List<String> mHeroes = []; List<String> mHeroes = [];
/// The number of users with membership of join, including the client's own user ID.
int mJoinedMemberCount; int mJoinedMemberCount;
/// The number of users with membership of invite.
int mInvitedMemberCount; int mInvitedMemberCount;
/// Key-Value store for room states.
Map<String, RoomState> states = {}; Map<String, RoomState> states = {};
/// Key-Value store for private account data only visible for this user.
Map<String, RoomAccountData> roomAccountData = {}; Map<String, RoomAccountData> roomAccountData = {};
/// Time when the user has last read the chat.
ChatTime unread;
/// ID of the fully read marker event. /// ID of the fully read marker event.
String fullyRead; String get fullyRead => roomAccountData["m.fully_read"].content["event_id"];
/// If something changes, this callback will be triggered. /// If something changes, this callback will be triggered.
onRoomUpdate onUpdate; onRoomUpdate onUpdate;