Skip to content

Commit f4a10e5

Browse files
authored
Make message filter's first message silent instead of content message (#419)
2 parents 2b2229e + 57614ff commit f4a10e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/message_filter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ async def on_message(self, message: dc.Message) -> None:
8585
)
8686
if message.content:
8787
notification += _MESSAGE_CONTENT_NOTICE
88-
await try_dm(message.author, notification, silent=bool(message.content))
88+
await try_dm(message.author, notification)
8989

9090
if message.content:
9191
content, file = format_or_file(message.content)
92-
await try_dm(message.author, content, file=file)
92+
await try_dm(message.author, content, file=file, silent=True)
9393
await try_dm(message.author, _COPY_TEXT_HINT, silent=True)
9494

9595

0 commit comments

Comments
 (0)