We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b233aa6 commit abecbf8Copy full SHA for abecbf8
bindings/matrix-sdk-ffi/src/lib.rs
@@ -30,6 +30,7 @@ mod timeline_event_filter;
30
mod tracing;
31
mod utils;
32
mod widget;
33
+mod room_alias;
34
35
use async_compat::TOKIO1 as RUNTIME;
36
use matrix_sdk::ruma::events::room::{
bindings/matrix-sdk-ffi/src/room_alias.rs
@@ -0,0 +1,7 @@
1
+use ruma::RoomAliasId;
2
+
3
+/// Verifies the passed `String` matches the expected room alias format.
4
+#[matrix_sdk_ffi_macros::export]
5
+fn is_room_alias_format_valid(alias: String) -> bool {
6
+ RoomAliasId::parse(alias).is_ok()
7
+}
0 commit comments