Verified Commit b694456e authored by Pierre de Lacroix's avatar Pierre de Lacroix
Browse files

fix Bridge.get_room

parent 0729f9cd
Pipeline #244182381 passed with stages
in 7 minutes and 34 seconds
......@@ -153,10 +153,10 @@ defmodule MatrixAppService.BridgeConfig do
def get_room!(id), do: @repo.get!(Room, id)
def get_room_by_local_id(local_id),
do: @repo.get_by(Room, local_id: local_id) || %Room{local_id: local_id}
do: @repo.get_by(Room, local_id: local_id)
def get_room_by_remote_id(remote_id),
do: @repo.get_by(Room, remote_id: remote_id) || %Room{remote_id: remote_id}
do: @repo.get_by(Room, remote_id: remote_id)
@doc """
Creates a room.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment