fix (timers): Force refresh view on repost.

This commit is contained in:
2023-08-27 08:54:16 +03:00
parent 7a40ca2cea
commit 7ca21e94d5

View File

@@ -585,6 +585,11 @@ class Timer:
self.last_status_message = None
# Send new notification message
# Refresh status view
old_status = self.status_view
self.status_view = None
args = await self.current_status(**kwargs)
logger.debug(
f"Timer {self!r} is sending a new status: {args.send_args}"
@@ -607,6 +612,9 @@ class Timer:
if last_message_id != self.data.last_messageid:
await self.data.update(last_messageid=last_message_id)
if old_status is not None:
old_status.stop()
@log_wrap(action='Update Timer Status')
async def update_status_card(self, **kwargs):
"""