25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Send announce Message stanzas as Headline type instead of Normal

This commit is contained in:
Badlop 2012-07-24 18:35:41 +02:00
parent 0cc920579c
commit 4d54bce621

View File

@ -571,7 +571,7 @@ handle_adhoc_form(From, #jid{lserver = LServer} = To,
node = Node,
sessionid = SessionID,
status = completed},
Packet = {xmlelement, "message", [{"type", "normal"}],
Packet = {xmlelement, "message", [{"type", "headline"}],
if Subject /= [] ->
[{xmlelement, "subject", [],
[{xmlcdata, Subject}]}];
@ -964,7 +964,7 @@ send_announcement_to_all(Host, SubjectS, BodyS) ->
true ->
[]
end,
Packet = {xmlelement, "message", [{"type", "normal"}], SubjectEls ++ BodyEls},
Packet = {xmlelement, "message", [{"type", "headline"}], SubjectEls ++ BodyEls},
Sessions = ejabberd_sm:dirty_get_sessions_list(),
Local = jlib:make_jid("", Host, ""),
lists:foreach(