From bafd1f7e0a016d7a68adaae833d87b10990ea6f3 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 16 Feb 2022 20:42:13 +0200 Subject: [PATCH] Omit URL previews with no title --- mautrix_googlechat/formatter/from_googlechat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mautrix_googlechat/formatter/from_googlechat.py b/mautrix_googlechat/formatter/from_googlechat.py index 671c251..d309af1 100644 --- a/mautrix_googlechat/formatter/from_googlechat.py +++ b/mautrix_googlechat/formatter/from_googlechat.py @@ -73,6 +73,7 @@ async def gc_previews_to_beeper( not ann.HasField("url_metadata") or ann.url_metadata.should_not_render or not ann.length + or not ann.url_metadata.title ): continue meta = ann.url_metadata