./ct_report/coverage/mam_send_message.COVER.html

1 %% Forwards extracted messages to the client.
2 %% The default implementation is in mod_mam_utils.
3 -module(mam_send_message).
4 -export([call_send_message/5]).
5
6 -ignore_xref([behaviour_info/1]).
7
8 -callback send_message(
9 Row :: mod_mam:message_row(),
10 ArcJID :: jid:jid(),
11 From :: jid:jid(),
12 Packet :: exml:element()) -> Acc :: mongoose_acc:t().
13
14 -spec call_send_message(
15 SendModule :: module(),
16 Row :: mod_mam:message_row(),
17 ArcJID :: jid:jid(),
18 From :: jid:jid(),
19 Packet :: exml:element()) -> Acc :: mongoose_acc:t().
20 call_send_message(SendModule, Row, ArcJID, From, Packet) ->
21 4430 SendModule:send_message(Row, ArcJID, From, Packet).
Line Hits Source