How can I display the group name in the chat overview?
-
How can I display the group name in the chat overview?
At present, the name of the group are shown always.
which is very confusing.
So when a group chat name has been assigned then should be displayed in the overview.
can anyone tell me in what file I have to look? -
@ogerly chat dropdown is built here https://github.com/NodeBB/NodeBB/blob/master/public/src/modules/chat.js#L97
but room name is not available in the data retrieved by the socket call. you will have to modify the function here to get the room name https://github.com/NodeBB/NodeBB/blob/master/src/messaging.js#L234
getting the room name there will add an additional db call for every chat in the dropdown.
-
-
ok I understand it .. and now this solution.
who assigned a room name, then it will be displayed if not then as far
https://github.com/NodeBB/NodeBB/compare/master...ogerly:patch-1