refactor: minor appservice code cleanup
This commit is contained in:
parent
fa930182ae
commit
0bb28f60cf
8 changed files with 136 additions and 163 deletions
|
@ -100,13 +100,7 @@ pub(crate) async fn get_alias_helper(
|
|||
match services().rooms.alias.resolve_local_alias(&room_alias)? {
|
||||
Some(r) => room_id = Some(r),
|
||||
None => {
|
||||
for appservice in services()
|
||||
.appservice
|
||||
.registration_info
|
||||
.read()
|
||||
.await
|
||||
.values()
|
||||
{
|
||||
for appservice in services().appservice.all().await {
|
||||
if appservice.aliases.is_match(room_alias.as_str())
|
||||
&& if let Some(opt_result) = services()
|
||||
.sending
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue