mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-28 22:52:27 +02:00
mod_mam: Remove unused code
This commit is contained in:
parent
59ba09826b
commit
14609dbfa2
|
@ -227,8 +227,6 @@ process_iq_v0_2(#jid{lserver = LServer} = From,
|
||||||
[{<<"end">>, [xml:get_tag_cdata(El)]}];
|
[{<<"end">>, [xml:get_tag_cdata(El)]}];
|
||||||
(#xmlel{name = <<"with">>} = El) ->
|
(#xmlel{name = <<"with">>} = El) ->
|
||||||
[{<<"with">>, [xml:get_tag_cdata(El)]}];
|
[{<<"with">>, [xml:get_tag_cdata(El)]}];
|
||||||
(#xmlel{name = <<"withroom">>} = El) ->
|
|
||||||
[{<<"withroom">>, [xml:get_tag_cdata(El)]}];
|
|
||||||
(#xmlel{name = <<"withtext">>} = El) ->
|
(#xmlel{name = <<"withtext">>} = El) ->
|
||||||
[{<<"withtext">>, [xml:get_tag_cdata(El)]}];
|
[{<<"withtext">>, [xml:get_tag_cdata(El)]}];
|
||||||
(#xmlel{name = <<"set">>}) ->
|
(#xmlel{name = <<"set">>}) ->
|
||||||
|
@ -342,10 +340,6 @@ process_iq(LServer, From, To, IQ, SubEl, Fs, MsgType) ->
|
||||||
With, RSM};
|
With, RSM};
|
||||||
({<<"with">>, [Data|_]}, {Start, End, _, RSM}) ->
|
({<<"with">>, [Data|_]}, {Start, End, _, RSM}) ->
|
||||||
{Start, End, jid:tolower(jid:from_string(Data)), RSM};
|
{Start, End, jid:tolower(jid:from_string(Data)), RSM};
|
||||||
({<<"withroom">>, [Data|_]}, {Start, End, _, RSM}) ->
|
|
||||||
{Start, End,
|
|
||||||
{room, jid:tolower(jid:from_string(Data))},
|
|
||||||
RSM};
|
|
||||||
({<<"withtext">>, [Data|_]}, {Start, End, _, RSM}) ->
|
({<<"withtext">>, [Data|_]}, {Start, End, _, RSM}) ->
|
||||||
{Start, End, {text, Data}, RSM};
|
{Start, End, {text, Data}, RSM};
|
||||||
({<<"set">>, El}, {Start, End, With, _}) ->
|
({<<"set">>, El}, {Start, End, With, _}) ->
|
||||||
|
@ -628,14 +622,7 @@ select_and_send(LServer, From, To, Start, End, With, RSM, IQ, MsgType, DBType) -
|
||||||
select_and_start(LServer, From, To, Start, End, With, RSM, MsgType, DBType) ->
|
select_and_start(LServer, From, To, Start, End, With, RSM, MsgType, DBType) ->
|
||||||
case MsgType of
|
case MsgType of
|
||||||
chat ->
|
chat ->
|
||||||
case With of
|
select(LServer, From, Start, End, With, RSM, MsgType, DBType);
|
||||||
{room, {_, _, <<"">>} = WithJID} ->
|
|
||||||
select(LServer, jid:make(WithJID), Start, End,
|
|
||||||
WithJID, RSM, MsgType, DBType);
|
|
||||||
_ ->
|
|
||||||
select(LServer, From, Start, End,
|
|
||||||
With, RSM, MsgType, DBType)
|
|
||||||
end;
|
|
||||||
{groupchat, _Role, _MUCState} ->
|
{groupchat, _Role, _MUCState} ->
|
||||||
select(LServer, To, Start, End, With, RSM, MsgType, DBType)
|
select(LServer, To, Start, End, With, RSM, MsgType, DBType)
|
||||||
end.
|
end.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user