Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to remove reactions from messages after page refresh. #28249

Closed
RokeJulianLockhart opened this issue Oct 20, 2024 · 9 comments
Closed
Labels
A-Reactions O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect X-Cannot-Reproduce

Comments

@RokeJulianLockhart
Copy link

RokeJulianLockhart commented Oct 20, 2024

Steps to reproduce

  1. Uploaded an MP4 H265 video file to https://matrix.to/#/!LdFTpgksHpQBBtjOMN:matrix.org/$7z9qoF17VHc08wg2mlG1fRYtfhXbHmhxp-ZNQCXcK-o?via=matrix.org&via=beeper.com.

  2. Reacted with an emoji.

  3. Attempted to remove the reaction.

    Outcome

    What did you expect?

    I should have been able to.

    What happened instead?

    I was able to.

  4. Refreshed the page.

  5. Attempted to remove the reaction.

    Outcome

    What did you expect?

    I should have been able to.

    What happened instead?

    I was unable to remove it, yet was able to remove others added subsequently:

    2024-10-20.12-56-42.mp4

Operating system

https://download.fedoraproject.org/pub/fedora/linux/releases/40/Spins/x86_64/iso/Fedora-KDE-Live-x86_64-40-1.14.iso

Browser information

https://fedora.pkgs.org/40/fedora-updates-x86_64/firefox-131.0.3-1.fc40.x86_64.rpm.html

URL for webapp

https://develop.element.io/#/room/!LdFTpgksHpQBBtjOMN:matrix.org

Application version

Element version: 249c0fd1df0a-js-88cf5eb76983
Crypto version: Rust SDK 0.7.2 (517d99b), Vodozemac 0.7.0

Homeserver

https://matrix.org/

Will you send logs?

Yes

@RokeJulianLockhart
Copy link
Author

RokeJulianLockhart commented Oct 20, 2024

Will you send logs?

Yes

Sent:

/rageshake I'm unable to remove the "O" reaction from https://matrix.to/#/!LdFTpgksHpQBBtjOMN:matrix.org/$7z9qoF17VHc08wg2mlG1fRYtfhXbHmhxp-ZNQCXcK-o?via=matrix.org&via=beeper.com.

@dosubot dosubot bot added A-Reactions O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist labels Oct 20, 2024
@RokeJulianLockhart RokeJulianLockhart changed the title Unable to remove specific reactions from messages. Unable to remove reactions from messages after page refresh. Oct 20, 2024
@MidhunSureshR MidhunSureshR added S-Major Severely degrades major functionality or product features, with no satisfactory workaround X-Cannot-Reproduce and removed S-Minor Impairs non-critical functionality or suitable workarounds exist labels Nov 1, 2024
@MidhunSureshR
Copy link
Member

This is really weird. From the logs, it looks like eventShouldLiveIn(redaction_event) is returning false.

Maybe try Clear cache and reload in Settings ~> Help & About.

@RokeJulianLockhart
Copy link
Author

RokeJulianLockhart commented Nov 1, 2024

Maybe try Clear cache and reload in Settings ~> Help & About.

@MidhunSureshR, unfortunately, I've confirmed that it's either a client-source or server issue, since I have been able to reproduce this on https://f-droid.org/repo/im.vector.app_40106204.apk of https://github.com/element-hq/element-android too.

However, looking back at the referenced message, the emojis in question appear to have finally been redacted. Perhaps the undermentioned message source data shall tell you something of value (if I've selected the correct message - the highlight isn't very obvious):

{
  "content": {
    "body": "1000009396.mp4",
    "info": {
      "duration": 71077,
      "h": 720,
      "mimetype": "video/mp4",
      "size": 28260134,
      "thumbnail_info": {
        "h": 1080,
        "mimetype": "image/jpeg",
        "size": 280933,
        "w": 1920
      },
      "thumbnail_url": "mxc://matrix.org/UwUKTRfOHkZaYjEbFNdShHKd",
      "w": 1280
    },
    "msgtype": "m.video",
    "url": "mxc://matrix.org/ubcJFQyLqcXmyqqNzlsLiSfX"
  },
  "origin_server_ts": 1729422562766,
  "room_id": "!LdFTpgksHpQBBtjOMN:matrix.org",
  "sender": "@rokejulianlockhart:matrix.org",
  "type": "m.room.message",
  "unsigned": {
    "membership": "join",
    "age": 1057522431,
    "m.relations": {
      "m.thread": {
        "latest_event": {
          "content": {
            "body": "Re_ Submission from Service Request Form_ Black display on FW16 after inputting LUKS password. 2024-10-20T12_29_59+01_00.eml",
            "info": {
              "mimetype": "message/rfc822",
              "size": 46349
            },
            "m.mentions": {},
            "m.relates_to": {
              "event_id": "$7z9qoF17VHc08wg2mlG1fRYtfhXbHmhxp-ZNQCXcK-o",
              "is_falling_back": true,
              "m.in_reply_to": {
                "event_id": "$MMpRrrlL2AXm0M0gjb45KTwV8rnnJsW0pQdZZ8qQRdw"
              },
              "rel_type": "m.thread"
            },
            "msgtype": "m.file",
            "url": "mxc://matrix.org/XvClKBoPaUVNvHpCZvSrvHAg"
          },
          "origin_server_ts": 1729424463627,
          "room_id": "!LdFTpgksHpQBBtjOMN:matrix.org",
          "sender": "@rokejulianlockhart:matrix.org",
          "type": "m.room.message",
          "unsigned": {
            "age": 1055621570
          },
          "event_id": "$GNjxcv9C-MuE2UQ5JaQINVLRD4XQEAaoBcNJjX-nqjM",
          "user_id": "@rokejulianlockhart:matrix.org",
          "age": 1055621570
        },
        "count": 4,
        "current_user_participated": true
      }
    }
  },
  "event_id": "$7z9qoF17VHc08wg2mlG1fRYtfhXbHmhxp-ZNQCXcK-o",
  "user_id": "@rokejulianlockhart:matrix.org",
  "age": 1057516185
}

My consequent estimate is that the matrix.org server is taking an inordinate amount of time to process these requests. Perhaps, it is a matter of prioritisation, considering that emoji reactions should be fairly inconsequential in comparison to ensuring that messages are sent on-time...?

@t3chguy
Copy link
Member

t3chguy commented Nov 1, 2024

either a client-source or server issue, since I have been able to reproduce this on f-droid.org/repo/im.vector.app_40106204.apk of element-hq/element-android too.

Element Web & Element Desktop share no code other than encryption code which is unrelated to reactions/redactions so this is a server issue

@t3chguy t3chguy closed this as not planned Won't fix, can't repro, duplicate, stale Nov 1, 2024
@RokeJulianLockhart
Copy link
Author

RokeJulianLockhart commented Nov 1, 2024

#28249 (comment)

@t3chguy, I'd say that closing this seems short-sighted - surely the client should at least display a reportable error when this fails? I know that Discord does when it's unable to add or remove a reaction.

Irrespective, has anyone any idea how to report this to Matrix if so, considering that it's the recommended homeserver?

@t3chguy
Copy link
Member

t3chguy commented Nov 1, 2024

@RokeJulianLockhart the server says the redaction is successful with a 200 OK, so is not something a client can reliably detect or deal with.

@RokeJulianLockhart
Copy link
Author

RokeJulianLockhart commented Nov 1, 2024

#28249 (comment)

@t3chguy, I realize that I'm no Matrix developer, but if the client continues to display the reaction after I tap or click it to redact it, then surely at some level the client understands that the event was not yet ratified by the server?

I estimate that if whatever informs it that the emoji should remain continues to signal so despite the fact that the 200 OK signal has been received by the client, then surely the client should be able to ascertain that the reaction should no longer be displayed?

@t3chguy
Copy link
Member

t3chguy commented Nov 4, 2024

@RokeJulianLockhart sure, you could have defensive code like that, and contributions welcome, but having to assume the Server may not be spec compliant will probably double the codebase in size if we have to handle most edge cases which may occur when dealing with non-compliant or buggy servers.

@RokeJulianLockhart
Copy link
Author

#28249 (comment)

@t3chguy, I have reported this to matrix-org/matrix.org#2553 (comment). Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Reactions O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect X-Cannot-Reproduce
Projects
None yet
Development

No branches or pull requests

3 participants