farooqkz / chooj

Matrix chat app for KaiOS feature phones supporting voice calls
74 stars 13 forks source link

Rooms with voice messages do not open #90

Closed affenull2345 closed 9 months ago

affenull2345 commented 1 year ago

After sending a voice message in a room, chooj can't open the room anymore, it just stops responding when I click on the room in the menu. The console shows Uncaught (in promise) TypeError: mxcUrl is undefined errors originating in the mxcMediaToHttp function called from IRCLikeMessageItemAudio.

plan5 commented 1 year ago

I'm working on this and got the room with Audio to open by changing this line [1] and removing the .content_uri part.

However, now all voice messages in the room start playing simultaneously once the room is opened - still looking but I thought I'd update here.

[1] https://github.com/farooqkz/chooj/blob/9f5abb8a4d4360e1f8d5da7299d2ed8904b5e059/src/MessageItems/IRCLikeMessageItem/IRCLikeMessageItem.tsx#L269

plan5 commented 1 year ago

Fixed the autoplay issue for 8110 and 8000. See comments in the PR.

farooqkz commented 9 months ago

@affenull2345 Is the bug still there? let me know to reopen if this is the case. BTW, is this about ALL voice messages or just those which are sent by chooj itself?