do not retry unmute if mute never expires

This commit is contained in:
Henri Dickson 2023-11-26 11:34:12 -05:00
parent b031880e41
commit 354c09a76d

View file

@ -37,7 +37,7 @@ class BlockStates(StateGraph):
"""
# Mutes don't send but might need expiry
if instance.mute:
return cls.awaiting_expiry
return cls.awaiting_expiry if instance.expires else cls.sent
# Remote blocks should not be here, local blocks just work
if not instance.source.local or instance.target.local:
return cls.sent