mirror of
https://github.com/processone/ejabberd.git
synced 2024-07-04 23:15:31 +02:00
Send announce Message stanzas as Headline type instead of Normal
This commit is contained in:
parent
9442a583bc
commit
674ab27700
|
@ -598,7 +598,7 @@ handle_adhoc_form(From, #jid{lserver = LServer} = To,
|
||||||
status = completed},
|
status = completed},
|
||||||
Packet = #xmlel{
|
Packet = #xmlel{
|
||||||
name = <<"message">>,
|
name = <<"message">>,
|
||||||
attrs = [{<<"type">>, <<"normal">>}],
|
attrs = [{<<"type">>, <<"headline">>}],
|
||||||
children = if Subject /= <<>> ->
|
children = if Subject /= <<>> ->
|
||||||
[#xmlel{name = <<"subject">>, children = [{xmlcdata, Subject}]}];
|
[#xmlel{name = <<"subject">>, children = [{xmlcdata, Subject}]}];
|
||||||
true ->
|
true ->
|
||||||
|
@ -991,7 +991,7 @@ send_announcement_to_all(Host, SubjectS, BodyS) ->
|
||||||
end,
|
end,
|
||||||
Packet = #xmlel{
|
Packet = #xmlel{
|
||||||
name = <<"message">>,
|
name = <<"message">>,
|
||||||
attrs = [{<<"type">>, <<"normal">>}],
|
attrs = [{<<"type">>, <<"headline">>}],
|
||||||
children = SubjectEls ++ BodyEls
|
children = SubjectEls ++ BodyEls
|
||||||
},
|
},
|
||||||
Sessions = ejabberd_sm:dirty_get_sessions_list(),
|
Sessions = ejabberd_sm:dirty_get_sessions_list(),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user