element-android icon indicating copy to clipboard operation
element-android copied to clipboard

Don't mark room as unread due to reactions

Open ofalvai opened this issue 3 years ago • 7 comments

Type of change

  • [ ] Feature
  • [X] Bugfix
  • [ ] Technical
  • [ ] Other :

Content

Fixes #2907

Motivation and context

I found it distracting and frustrating that my room list had a lot of unread indicators, showing unread reactions by other people. This is especially distracting in read-only announcement rooms where reactions are often added to old messages.

This change also aligns Element Android to Element Web in handling reactions.

Screenshots / GIFs

Before After
Screenshot_20220419-220448 Screenshot_20220419-220438

Tests

Manual testing with my own unread channels

Tested devices

  • [X] Physical
  • [ ] Emulator
  • OS version(s): Android 11

Checklist

  • [ ] Changes has been tested on an Android device or Android emulator with API 21
  • [ ] UI change has been tested on both light and dark themes
  • [X] Accessibility has been taken into account. See https://github.com/vector-im/element-android/blob/develop/CONTRIBUTING.md#accessibility
  • [X] Pull request is based on the develop branch
  • [X] Pull request includes a new file under ./changelog.d. See https://github.com/vector-im/element-android/blob/develop/CONTRIBUTING.md#changelog
  • [X] Pull request includes screenshots or videos if containing UI changes
  • [X] Pull request includes a sign off
  • [X] You've made a self review of your PR
  • [ ] If you have modified the screen flow, or added new screens to the application, you have updated the test UiAllScreensSanityTest.allScreensTest()

Signed-off-by: Olivér Falvai [email protected]

ofalvai avatar Apr 26 '22 18:04 ofalvai

looping in product to confirm the behaviour

  • Reactions will no longer mark rooms as unread
  • Reactions will no longer show as the last message in room list

ouchadam avatar May 06 '22 12:05 ouchadam

Just a friendly ping to make sure it's not forgotten.

If it's okay from the product POV, I'll rebase this PR and resolve conflicts.

ofalvai avatar Sep 07 '22 14:09 ofalvai

🎙 Product

The Web product has a setting that changes whether the reaction shows up in the message preview - is that something we have here?

Otherwise, looks good. Glad that we're matching Web!

daniellekirkwood avatar Oct 05 '22 11:10 daniellekirkwood

@daniellekirkwood this change simply disables the unread reactions (as shown on the screenshots). But if you say a new setting is required for this, I'm happy to include that.

Just to clarify: in the web product this is under Labs and it's disabled by default (meaning that this PR will change the default behavior).

ofalvai avatar Oct 05 '22 13:10 ofalvai

Good to know, thanks!

daniellekirkwood avatar Oct 06 '22 09:10 daniellekirkwood

@ofalvai can I ask you to handle https://github.com/vector-im/element-android/pull/5846#discussion_r1065824274? Then we could merge this PR. Thanks!

bmarty avatar Jan 10 '23 14:01 bmarty

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Sep 25 '24 12:09 CLAassistant