Comments (4)
Some details on the issue for future reference as first replied on StackOverflow:
ng-chat treats groups as individual participants. You will have to join your room when this event gets invoked:
groupCreated(group: Group): void {
console.log( group);
// Invoke your SignalR hub and send the details of the newly created group
}
ng-chat will generate unique ids every time a group is created so you can track which group is which whenever one gets created from a running ng-chat instance. How you will handle the persistence of these groups is up to your application.
You might want to push a notification to involved users from your SignalR adapter that their friends list has changed (They'll be able to see the group at this stage). You could also decide not to do so and only push a notification if the user who has created the group send an initial message (Once again, up to your application requirements and needs).
You might also want to implement IChatGroupAdapter on your adapter to make the contract more explicit.
Hope this helps!
from ng-chat.
I'll soon be adding support for group chat on the SignalR adapter example found here: https://github.com/rpaschoal/ng-chat-netcoreapp
from ng-chat.
From my StackOverflow answer:
I've just pushed some changes on the "ng-chat-netcoreapp" repository. Have a look at the changes added with this pull request and look at the simple group chat example implementation I've added there: github.com/rpaschoal/ng-chat-netcoreapp/pull/1. Please note this is a quick implementation for a group chat adapter but it should be enough to get your head around the message and participants cycle. You should elaborate more on your code base for your adapter and hub to get production grade code in shape.
While testing I think I've found a minor bug with group messages not being marked as read. I'll do some more testing and confirm it is really a bug and push a patch anytime soon for it.
from ng-chat.
The bug for unread messages not being marked as read for group chats has been released with version 2.0.2
.
from ng-chat.
Related Issues (20)
- How to customize chat window like shown in attached image HOT 1
- Problem with creating a group programatically HOT 1
- Firebase Implementation HOT 1
- How to translate the label "Add People" HOT 1
- Html tag does not show up!!! HOT 2
- onMessageReceived HOT 2
- Download a file
- ng build error HOT 2
- Pagination method not calling on scroll up. HOT 1
- Add icons to show message status HOT 1
- Paged Friend List Component HOT 1
- Question Asp.Net Web API 2 HOT 1
- @aspnet/signalr deprecated HOT 1
- dark theme HOT 1
- Test if Participant chat window is open. HOT 4
- Double message when using getMessageHistory HOT 2
- how to delete a friend from your chat list ? HOT 1
- How to refresh conversation? HOT 1
- ChatController doesn't get instantiated HOT 1
- Please publish and Ivy Distribution HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-chat.