Skip to content

Commit

Permalink
Revert "mod_register: Send welcome message as 'chat' too (processone#…
Browse files Browse the repository at this point in the history
…4246)"

This reverts commit 9a0ff13.
  • Loading branch information
badlop committed Jan 7, 2025
1 parent 036a3e5 commit 84a72f3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions src/mod_register.erl
Original file line number Diff line number Diff line change
Expand Up @@ -412,12 +412,6 @@ send_welcome_message(JID) ->
case mod_register_opt:welcome_message(Host) of
{<<"">>, <<"">>} -> ok;
{Subj, Body} ->
ejabberd_router:route(
#message{from = jid:make(Host),
to = JID,
type = chat,
subject = xmpp:mk_text(Subj),
body = xmpp:mk_text(<<Subj/binary, "\n\n", Body/binary>>)}),
ejabberd_router:route(
#message{from = jid:make(Host),
to = JID,
Expand Down
2 changes: 0 additions & 2 deletions test/ejabberd_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -920,8 +920,6 @@ presence_broadcast(Config) ->
IQ = #iq{type = get,
from = JID,
sub_els = [#disco_info{node = Node}]} = recv_iq(Config),
#message{type = chat,
subject = [#text{lang = <<"en">>,data = <<"Welcome!">>}]} = recv_message(Config),
#message{type = normal,
subject = [#text{lang = <<"en">>,data = <<"Welcome!">>}]} = recv_message(Config),
#presence{from = JID, to = JID} = recv_presence(Config),
Expand Down

0 comments on commit 84a72f3

Please sign in to comment.