mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Better integration of groups conversations
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user