don't preview matrix.to urls
This commit is contained in:
parent
d70c439278
commit
8154d41dc5
1 changed files with 1 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ class UrlPreviewController extends AsyncNotifier<LinkPreviewData?> {
|
||||||
r'''https?://[^\s"'<>]+''',
|
r'''https?://[^\s"'<>]+''',
|
||||||
).allMatches(message.text).firstOrNull?.group(0);
|
).allMatches(message.text).firstOrNull?.group(0);
|
||||||
|
|
||||||
if (homeserver != null && link != null) {
|
if (homeserver != null && link != null && !link.contains("matrix.to")) {
|
||||||
{
|
{
|
||||||
final response = await get(
|
final response = await get(
|
||||||
Uri.parse(homeserver)
|
Uri.parse(homeserver)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue