mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 19:42:11 +02:00
Add MAM (XEP-0313) support
This commit is contained in:
parent
6631078884
commit
83cce468a5
15 changed files with 2624 additions and 42 deletions
|
@ -57,7 +57,7 @@
|
|||
handle_cast/2, handle_info/2, code_change/3]).
|
||||
|
||||
-export([iq_ping/3, user_online/3, user_offline/3,
|
||||
user_send/3, mod_opt_type/1]).
|
||||
user_send/4, mod_opt_type/1]).
|
||||
|
||||
-record(state,
|
||||
{host = <<"">>,
|
||||
|
@ -214,8 +214,9 @@ user_online(_SID, JID, _Info) ->
|
|||
user_offline(_SID, JID, _Info) ->
|
||||
stop_ping(JID#jid.lserver, JID).
|
||||
|
||||
user_send(JID, _From, _Packet) ->
|
||||
start_ping(JID#jid.lserver, JID).
|
||||
user_send(Packet, _C2SState, JID, _From) ->
|
||||
start_ping(JID#jid.lserver, JID),
|
||||
Packet.
|
||||
|
||||
%%====================================================================
|
||||
%% Internal functions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue