Skip to content

Commit

Permalink
BETTER CODE FORMAT
Browse files Browse the repository at this point in the history
  • Loading branch information
KurosawaAngel committed Nov 5, 2024
1 parent e5c4510 commit c36ea7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/aiogram_dialog/manager/message_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ def _message_changed(
def _can_edit(self, new_message: NewMessage,
old_message: OldMessage) -> bool:
# we cannot edit message if media removed
return (
not self.had_media(old_message) or self.need_media(new_message)
) and not (
if self.had_media(old_message) and not self.need_media(new_message):
return False
return not (
self.had_reply_keyboard(old_message) or
self.need_reply_keyboard(new_message)
)
Expand Down

0 comments on commit c36ea7c

Please sign in to comment.