mirror of
https://github.com/matrix-construct/construct
synced 2025-03-24 02:10:28 +01:00
modules/m_room_history_visibility: Add preliminary stub.
This commit is contained in:
parent
69e9c9bbc6
commit
b65ff7ea53
2 changed files with 50 additions and 0 deletions
|
@ -85,6 +85,7 @@ m_room_la_SOURCES = m_room.cc
|
|||
m_room_create_la_SOURCES = m_room_create.cc
|
||||
m_room_member_la_SOURCES = m_room_member.cc
|
||||
m_room_join_rules_la_SOURCES = m_room_join_rules.cc
|
||||
m_room_history_visibility_la_SOURCES = m_room_history_visibility.cc
|
||||
|
||||
m_module_LTLIBRARIES = \
|
||||
m_noop.la \
|
||||
|
@ -95,6 +96,7 @@ m_module_LTLIBRARIES = \
|
|||
m_room_create.la \
|
||||
m_room_member.la \
|
||||
m_room_join_rules.la \
|
||||
m_room_history_visibility.la \
|
||||
###
|
||||
|
||||
###############################################################################
|
||||
|
|
48
modules/m_room_history_visibility.cc
Normal file
48
modules/m_room_history_visibility.cc
Normal file
|
@ -0,0 +1,48 @@
|
|||
// Matrix Construct
|
||||
//
|
||||
// Copyright (C) Matrix Construct Developers, Authors & Contributors
|
||||
// Copyright (C) 2016-2018 Jason Volk <jason@zemos.net>
|
||||
//
|
||||
// Permission to use, copy, modify, and/or distribute this software for any
|
||||
// purpose with or without fee is hereby granted, provided that the above
|
||||
// copyright notice and this permission notice is present in all copies. The
|
||||
// full license for this software is available in the LICENSE file.
|
||||
|
||||
using namespace ircd;
|
||||
|
||||
mapi::header
|
||||
IRCD_MODULE
|
||||
{
|
||||
"Matrix m.room.history_visibility"
|
||||
};
|
||||
|
||||
static void
|
||||
_changed_visibility(const m::event &event)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
const m::hook<>
|
||||
_changed_visibility_hookfn
|
||||
{
|
||||
_changed_visibility,
|
||||
{
|
||||
{ "_site", "vm.notify" },
|
||||
{ "type", "m.room.history_visibility" },
|
||||
}
|
||||
};
|
||||
|
||||
static void
|
||||
_event_visible(const m::event &event)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
const m::hook<>
|
||||
_event_visible_hookfn
|
||||
{
|
||||
_event_visible,
|
||||
{
|
||||
{ "_site", "m.event.visible" },
|
||||
}
|
||||
};
|
Loading…
Add table
Reference in a new issue