feat(backend): edit versions are kept in groups and channels by default
This commit is contained in:
1 parent
0dd14c5d5e
commit
45c19cac20
3 files changed
+35
-3
No files matched your search
@@ -25,7 +25,7 @@ async def on_edited_message(client: PyroClient, message: Message) -> None:
|
||||
meta = meta_from_chat(chat, ctx.contacts.ids)
|
||||
await ctx.watches.on_edit(seen_message(chat_id, message))
|
||||
toggles = ctx.resolve(meta)
|
||||
if not toggles.track_edits_deletes:
|
||||
if not (toggles.messages and toggles.track_edits_deletes):
|
||||
return
|
||||
changed = await repository.add_version(
|
||||
ctx.pool, ctx.account_id, message_row(message, chat_id, message.date)
|
||||
|
||||
Reference in new issue
Block a user