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

Add a button to mark all rooms as read #3676

Closed

Conversation

aaronraimist
Copy link
Contributor

@aaronraimist aaronraimist commented Nov 26, 2019

Screen Shot 2019-11-26 at 4 09 47 PM

Helps with element-hq/element-web#850 but it would be nice to add a Shift + Escape keyboard shortcut like Slack

Workaround for element-hq/element-web#3060

Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

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

otherwise lgtm. Can you include a screenshot of the area this button is in for design review?

@turt2live turt2live requested a review from nadonomy November 26, 2019 22:14
MatrixClientPeg.get().getRooms().forEach(function(element) {
MatrixClientPeg.get().sendReadReceipt(function(evs) {
return evs[evs.length - 1]
}(element.getLiveTimeline()._events), {});
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

@aaronraimist aaronraimist Nov 26, 2019

Choose a reason for hiding this comment

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

Didn't realize #2959 existed. Let's merge that and you can add another button to there that marks all rooms as read.

_onMarkAllRoomsAsRead = (e) => {
MatrixClientPeg.get().getRooms().forEach(function(element) {
MatrixClientPeg.get().sendReadReceipt(function(evs) {
return evs[evs.length - 1]
Copy link
Member

Choose a reason for hiding this comment

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

The linter is annoying sometimes:

Suggested change
return evs[evs.length - 1]
return evs[evs.length - 1];

@turt2live
Copy link
Member

Blocking this on design review.

@aaronraimist
Copy link
Contributor Author

I'm just going to close this in favor of #2959 for now. I think the notifications tab makes more sense and if @t3chguy doesn't add a second button to mark all rooms as read then I'll add another button there.

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.

3 participants