add appservice MSC4190 support
Signed-off-by: June Clementine Strawberry <june@3.dog>
This commit is contained in:
parent
0e0b8cc403
commit
24be579477
7 changed files with 125 additions and 50 deletions
|
@ -22,7 +22,13 @@ pub(crate) async fn appservice_ping(
|
|||
)));
|
||||
}
|
||||
|
||||
if appservice_info.registration.url.is_none() {
|
||||
if appservice_info.registration.url.is_none()
|
||||
|| appservice_info
|
||||
.registration
|
||||
.url
|
||||
.as_ref()
|
||||
.is_some_and(|url| url.is_empty() || url == "null")
|
||||
{
|
||||
return Err!(Request(UrlNotSet(
|
||||
"Appservice does not have a URL set, there is nothing to ping."
|
||||
)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue