Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

change title of group chat #147

Open
lilling opened this issue Jan 12, 2020 · 2 comments
Open

change title of group chat #147

lilling opened this issue Jan 12, 2020 · 2 comments

Comments

@lilling
Copy link

lilling commented Jan 12, 2020

Hey!
You have a gr8 module here! (I'm the 92 ⭐️)

do you have an option to change the group chat title so it wouldn't show participants' names rather the topic we are discussing?

@rpaschoal
Copy link
Owner

Hi @lilling , thanks!

Not at the moment. If you check the following class you will realize how the group title is currently set: https://github.com/rpaschoal/ng-chat/blob/master/src/ng-chat/core/group.ts

@fouzianigarsultana
Copy link

Hello,
I have tried ng-chat and am new in socket.io world. I am trying to create friendlist with specific user group whose data will render from database. But I am not abling.Would please advice me my list is like this:
`router.get("/chat", (req, res, next) => {
ALUser.find({
$and: [{
uniname: {
'$regex': req.query.uniname,
'$options': 'i'
}
},
{
dept: {
'$regex': req.query.dept,
'$options': 'i'
}
},
{
session: {
'$regex': req.query.session,
'$options': 'i'
}
}
]
}).then(data => {
res.status(200).json({
message: "Users retrieved successfully!",
alusers: data
});
});
});
var usersCollection = [];
app.post('/alumnichat', function (req, res) {
var clonedArray = usersCollection.slice();

// Getting the userId from the request body as this is just a demo
// Ideally in a production application you would change this to a session value or something else
var i = usersCollection.findIndex(x => x.participant.id == req.body.userId);
clonedArray.splice(i, 1);
res.json(clonedArray);
});`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants