GetStream / stream-chat-angular

💬 Angular Chat SDK ➜ Stream Chat. Build a chat app with ease.
https://getstream.io/chat/sdk/angular/
54 stars 32 forks source link

Cannot assign to read only property 'length' of object '[object Array]' when sending message #606

Open nathanlaingzigzag opened 7 months ago

nathanlaingzigzag commented 7 months ago

Whenever I send a message in a channel I get the following error.

It could be due to "user error" on my behalf, but it does look like it's coming from the stream-chat library so thought I would post it here.

stream-chat-error
szuperaz commented 6 months ago

Sorry for the late response; I was out of the office. The error comes from this line of code: https://github.com/GetStream/stream-chat-angular/blob/master/projects/stream-chat-angular/src/lib/channel.service.ts#L1453 - the splice method fails on the array. However I can't reproduce this error with our sample app, nor do I know what could cause such error. Can you please try and reproduce with the sample app? Did this error started after a stream-chat-angular update? What version are you using currently?