rpaschoal / ng-chat

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

Problem with creating a group programatically #194

Open lsoaresesilva opened 3 years ago

lsoaresesilva commented 3 years ago

Hello, first congrats on this component!!

I have created an instance of a Group object and passed it in the triggerOpenChatWindow method. Visually the group chat is presented, but the method groupCreated is not invoked.

I'm missing something?

rpaschoal commented 3 years ago

Hi @lsoaresesilva , thank you!

I don't think triggerOpenChatWindow supports receiving a group. Perhaps it is visually working because both User and Group are/implement IChatParticipant. I don't think support for opening a group chat window was ever implemented.

I'm not exactly sure what you are trying to implement but this adapter example might help: https://github.com/rpaschoal/ng-chat-netcoreapp/blob/master/NgChatClient/ClientApp/src/app/signalr-group-adapter.ts

I am not actively pushing new changes to this repository/package but pull requests are welcome.

Cheers