Skip to content

Commit

Permalink
Merge pull request #372 from KuroKoka551/develop
Browse files Browse the repository at this point in the history
Fixed bug with LaunchMode.SINGLE_TOP
  • Loading branch information
Tishka17 committed Feb 22, 2024
2 parents da090b3 + 06498ce commit 83a5393
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/aiogram_dialog/manager/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ async def _start_normal(self, state: State, data: Data = None) -> None:
if launch_mode is LaunchMode.SINGLE_TOP:
if new_dialog is old_dialog:
await self.storage().remove_context(stack.pop())
self._data[CONTEXT_KEY] = None

if self.has_context():
await self.storage().save_context(self.current_context())
Expand Down

0 comments on commit 83a5393

Please sign in to comment.