mirror of
https://github.com/matrix-construct/construct
synced 2024-06-11 14:38:57 +02:00
modules/m_room_member: Add preliminary type stub from hooks out of client/rooms/join.
This commit is contained in:
parent
15b995cee8
commit
738eb0782e
|
@ -66,6 +66,7 @@ m_typing_la_SOURCES = m_typing.cc
|
|||
m_receipt_la_SOURCES = m_receipt.cc
|
||||
m_presence_la_SOURCES = m_presence.cc
|
||||
m_room_create_la_SOURCES = m_room_create.cc
|
||||
m_room_member_la_SOURCES = m_room_member.cc
|
||||
|
||||
m_module_LTLIBRARIES = \
|
||||
m_noop.la \
|
||||
|
@ -73,6 +74,7 @@ m_module_LTLIBRARIES = \
|
|||
m_receipt.la \
|
||||
m_presence.la \
|
||||
m_room_create.la \
|
||||
m_room_member.la \
|
||||
###
|
||||
|
||||
###############################################################################
|
||||
|
|
45
modules/m_room_member.cc
Normal file
45
modules/m_room_member.cc
Normal file
|
@ -0,0 +1,45 @@
|
|||
// 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;
|
||||
|
||||
static void
|
||||
_can_join_room(const m::event &event)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
const m::hook
|
||||
_can_join_room_hookfn
|
||||
{
|
||||
{
|
||||
{ "_site", "vm.commit" },
|
||||
{ "type", "m.room.member" },
|
||||
{ "membership", "join" },
|
||||
},
|
||||
_can_join_room
|
||||
};
|
||||
|
||||
static void
|
||||
_join_room(const m::event &event)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
const m::hook
|
||||
_join_room_hookfn
|
||||
{
|
||||
{
|
||||
{ "_site", "vm.notify" },
|
||||
{ "type", "m.room.member" },
|
||||
{ "membership", "join" },
|
||||
},
|
||||
_join_room
|
||||
};
|
Loading…
Reference in a new issue