cinnyapp / cinny

Yet another matrix client
https://cinny.in
GNU Affero General Public License v3.0
1.99k stars 260 forks source link

Unable to browse rooms or send messages. #750

Closed OpaqueReptile closed 2 years ago

OpaqueReptile commented 2 years ago

Describe the bug

Trying to send a message into a room or simply browse rooms results in the following, which causes the app to become unresponsive:

main.b8455fa246356d403cf5.bundle.js:2 Uncaught TypeError: Cannot read properties of null (reading 'displayName')
    at main.b8455fa246356d403cf5.bundle.js:2:2929160
    at Is (main.b8455fa246356d403cf5.bundle.js:2:2929221)
    at a.e (main.b8455fa246356d403cf5.bundle.js:2:3948672)
    at i.emit (main.b8455fa246356d403cf5.bundle.js:2:530478)
    at Object.SELECT_ROOM (main.b8455fa246356d403cf5.bundle.js:2:2971217)
    at a.value (main.b8455fa246356d403cf5.bundle.js:2:2973970)
    at t._invokeCallback (main.b8455fa246356d403cf5.bundle.js:2:538321)
    at t.dispatch (main.b8455fa246356d403cf5.bundle.js:2:538143)
    at Bu (main.b8455fa246356d403cf5.bundle.js:2:2965955)
    at onClick (main.b8455fa246356d403cf5.bundle.js:2:3518748)

image

Reproduction

  1. Launch App
  2. Browse any two rooms
  3. Try to send a message

Expected behavior

Normal chat behavior

Platform and versions

OS: Windows 11
Version: Cinny desktop 2.1.2
Homeserver: inferiorlattice.com (Synapse 1.64.0)

Additional context

No response

OpaqueReptile commented 2 years ago

Further details, realized I had a personal custom emoji added from FluffyChat that seems to be missing the displayName key - removing that in FluffyChat fixed the issue.

kfiven commented 2 years ago

Not a Cinny issue as per #747 (This was the culprit.)