rpaschoal / ng-chat

💬 A simple facebook/linkedin lookalike chat module for Angular applications.
MIT License
155 stars 92 forks source link

Errors onMessageReceived when user chat window is closed #76

Closed Magneto2018 closed 5 years ago

Magneto2018 commented 5 years ago

I was testing the chat and got errors. this happens when chat windows are closed and some one messaged you and window automatically opens with errors. if you have already opened the chat window for the user who is messaging you will not get error. if you get error on above situation you will always get error on onMessageSeen event.

rpaschoal commented 5 years ago

Hi @Magneto2018 ,

Would you be able to provide more details on the error message?

rpaschoal commented 5 years ago

Hi @Magneto2018 ,

I've got a fix for "Cannot read property 'message' of undefined" on this commit (Will be released soon): https://github.com/rpaschoal/ng-chat/commit/2f1f88ee0750471f87baba118cdb40af71d77975

Not sure on the other error, are you using a custom localization object?

Magneto2018 commented 5 years ago

Nope i am not using localization.

rpaschoal commented 5 years ago

Hi @Magneto2018 ,

I've just released 1.1.0 and I believe it fixes this. Would you be able to test it against 1.1.0 and let me know if this is fixed? Cheers!