Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Open sidebar
Kazarma
MatrixAppService.ex
Commits
4292a917
Verified
Commit
4292a917
authored
Jan 24, 2021
by
Pierre de Lacroix
Browse files
remove default bridged user
parent
eef54b2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/matrix_app_service/bridge_config.ex
lib/matrix_app_service/bridge_config.ex
+2
-2
No files found.
lib/matrix_app_service/bridge_config.ex
View file @
4292a917
...
...
@@ -42,10 +42,10 @@ defmodule MatrixAppService.BridgeConfig do
def
get_user!
(
id
),
do
:
@repo
.
get!
(
User
,
id
)
def
get_user_by_local_id
(
local_id
),
do
:
@repo
.
get_by
(
User
,
local_id:
local_id
)
||
%
User
{
local_id:
local_id
}
do
:
@repo
.
get_by
(
User
,
local_id:
local_id
)
def
get_user_by_remote_id
(
remote_id
),
do
:
@repo
.
get_by
(
User
,
remote_id:
remote_id
)
||
%
User
{
remote_id:
remote_id
}
do
:
@repo
.
get_by
(
User
,
remote_id:
remote_id
)
@doc
"""
Creates a user.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment