Allow filtering direct chats with filter config (#892)

This commit is contained in:
Stefano Pigozzi
2023-05-07 17:03:48 +02:00
committed by GitHub
parent 40e4c7e251
commit 759ccf301c
3 changed files with 10 additions and 3 deletions
+5 -1
View File
@@ -483,7 +483,6 @@ bridge:
# Filter rooms that can/can't be bridged. Can also be managed using the `filter` and
# `filter-mode` management commands.
#
# Filters do not affect direct chats.
# An empty blacklist will essentially disable the filter.
filter:
# Filter mode to use. Either "blacklist" or "whitelist".
@@ -492,6 +491,11 @@ bridge:
mode: blacklist
# The list of group/channel IDs to filter.
list: []
# How to handle direct chats:
# If users is "null", direct chats will follow the previous settings.
# If users is "true", direct chats will always be bridged.
# If users is "false", direct chats will never be bridged.
users: true
# The prefix for commands. Only required in non-management rooms.
command_prefix: "!tg"