25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-20 17:27:00 +01:00

Adapt to new ejabberd_sm changes

This commit is contained in:
Paweł Chmielowski 2017-01-23 19:34:22 +01:00 committed by Paweł Chmielowski
parent 8b5e6e4a13
commit b0e72ece43

View File

@ -42,14 +42,14 @@ defmodule EjabberdSmMock do
fn (user, domain) -> for s <- get_sessions(user, domain), do: s.resource end) fn (user, domain) -> for s <- get_sessions(user, domain), do: s.resource end)
mock(:ejabberd_sm, :route, mock(:ejabberd_sm, :route,
fn (_from, to, {:broadcast, {:exit, _reason}}) -> fn (to, {:exit, _reason}) ->
user = jid(to, :user) user = jid(to, :user)
domain = jid(to, :server) domain = jid(to, :server)
resource = jid(to, :resource) resource = jid(to, :resource)
disconnect_resource(user, domain, resource) disconnect_resource(user, domain, resource)
:ok :ok
(_, _, _) -> :ok (_, _) -> :ok
end) end)
end end