Better integration of groups conversations

This commit is contained in:
2021-04-05 17:08:59 +02:00
parent 0479a4d7a5
commit b99c1e4a7f
3 changed files with 26 additions and 11 deletions

View File

@ -222,10 +222,13 @@ function log(message){
* @param {number} id The ID of the conversation to open
* @param {bool} fullscreen Specify whether the conversation has to
* appear in full screen or not
* @param {number} group_id Related group ID (if any)
*/
function openConversation(id, fullscreen = false){
function openConversation(id, fullscreen = false, group_id){
if(!fullscreen)
ComunicWeb.components.conversations.manager.addConversation(id);
else if (group_id)
Page.openPage("groups/" + group_id + "/conversation/" + id);
else
openPage("conversations/" + id);
}