Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add DM rooms with that person to the MemberInfo panel #455

Merged
merged 3 commits into from
Sep 9, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Sep 9, 2016

Factor out the chunk of code that looks through a read receipt event
to see if it contain a read receipt from a given user, now we use it
in 2 places.
// because if we read a notification, it will affect notification count
// only bother updating if there's a receipt from us
if (Receipt.findReadReceiptFromUserId(receiptEvent, MatrixClientPeg.get().credentials.userId)) {
this.forceUpdate();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why does MemberInfo care about RRs?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't really, it's just the same optimisation used in RoomList that we can skip updating if the read receipt is not from us because we only show the read count.

@ara4n
Copy link
Member

ara4n commented Sep 9, 2016

lgtm other than one Q

@ara4n
Copy link
Member

ara4n commented Sep 9, 2016

lgtm

@dbkr dbkr merged commit 78f53bd into develop Sep 9, 2016
@richvdh richvdh deleted the dbkr/memberinfo_list_rooms branch February 15, 2017 13:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants