Start to display group conversation page

This commit is contained in:
2021-04-05 15:49:21 +02:00
parent 5073c4e1ba
commit 5bb7b2a39e
7 changed files with 53 additions and 7 deletions

View File

@@ -10,8 +10,9 @@ const GroupTabs = {
* @param {AdvancedGroupInfo} group Group information
* @param {HTMLElement} target Target
* @param {String} activePage Current active page
* @param {String} firstArg First argument passed after page (if any)
*/
show: async function(group, target, activePage) {
show: async function(group, target, activePage, firstArgument) {
// Load template
const tpl = await Page.loadHTMLTemplate("pages/groups/sections/GroupTabs.html");
const el = document.createElement("div")
@@ -24,7 +25,9 @@ const GroupTabs = {
return {
isAdmin: group.membership == "administrator",
canSeeMembers: group.is_members_list_public || group.membership == "administrator" || group.membership == "moderator",
activePage: activePage
activePage: activePage,
firstArgument: firstArgument,
conversations: group.conversations,
}
},