Add option to disable native stickers. Fixes #116
This commit is contained in:
@@ -176,6 +176,7 @@ class Config(DictWithRecursion):
|
||||
copy("bridge.inline_images")
|
||||
copy("bridge.plaintext_highlights")
|
||||
copy("bridge.public_portals")
|
||||
copy("bridge.native_stickers")
|
||||
|
||||
copy("bridge.command_prefix")
|
||||
|
||||
|
||||
@@ -1050,7 +1050,7 @@ class Portal:
|
||||
"external_url": self.get_external_url(evt)
|
||||
}
|
||||
|
||||
if attrs["is_sticker"]:
|
||||
if attrs["is_sticker"] and config["bridge.native_stickers"]:
|
||||
return await intent.send_sticker(**kwargs)
|
||||
|
||||
mime_type = info["mimetype"]
|
||||
|
||||
Reference in New Issue
Block a user