nheko icon indicating copy to clipboard operation
nheko copied to clipboard

`/snowfall <message>` does not get rendered and dated to 1970-01-01 (also applies to `/confetti <message>`, `/confetti <message>`, `/rainfall <message>`, `/spaceinvaders message`.)

Open dreirund opened this issue 2 years ago • 2 comments

Describe the bug

When I write in another client /snowfall, nheko does correctly displays it as <user> sends snowfall ❄ with correct timestamp. When I write /snowfall <message>, nheko does display Unretrieved event and dates it to 1970-01-01, and shows "This message is not encrypted!" although it is an encrypted chat and shows "edited" although it has not been edited.

(Does also apply to /confetti <message>, /confetti <message>, /rainfall <message>, /spaceinvaders message. On the other side, /ranbow <message>, /rainbowme <message>, /me <message> and /spoiler <message> display correctly, althouth `/spoiler is not hidden by default as it is in the clients Element and SchildiChat.)

To Reproduce

  1. Be logged in with Matrix account A in the client "SchildiChat-desktop" (it is based on the Matrix reference client "Element-desktop"),
  2. be logged in with Matrix account B in the client "Nheko",
  3. have an encrypted private conversation between A and B,
  4. have A write /snowfall This is a `/snowfall` message to B,
  5. see the problem described above.

What happened?

Here are details and screenshots of the situation (personal information such as user names greyed out):

  1. What I have sent in SchildiChat:
    00_-_element-snowfall-sent
  2. The "Decrypted event source" from within SchildiChat of the /snowfall This is a `/snowfall` message-message:
    {
      "type": "m.room.message",
      "content": {
        "msgtype": "io.element.effect.snowfall",
        "body": "This is a `/snowfall` message."
      }
    }
    
  3. What was received in Nheko:
    02_-_nheko-snowfall-retrieved
  4. "View raw message" does not show up anything in Nheko.

Expected behavior

That Nheko displays This is a `/snowfall` message. with snowfall effect.

Screenshots

See above at "What happened?".

Version

0.9.1-c59bb675

Operating system

Artix GNU/Linux.

Installation method

AUR package nheko-git.

Qt version

5.15.2+kde+r289 (Artix GNU-Linux-package qt5-base).

C++ compiler

gcc-11.1.0

Desktop Environment

no desktop environmnt. Plain xfwm4 window manager and standalone xfce4-taskbar.

Did you use profiles?

  • [ ] Profiles used?

Relevant log output

No response

Backtrace

No response

dreirund avatar Jan 13 '22 12:01 dreirund

Can reproduce, confirming bug.

N07070 avatar Jan 31 '22 15:01 N07070

The events are now not shown at all, which can be considered progress or regress, depending on your viewpoint.

LorenDB avatar Apr 28 '22 23:04 LorenDB

Confetti has been implemented and I have a fix for the others in the pipeline.

LorenDB avatar Feb 14 '23 13:02 LorenDB