Closed alphatownsman closed 7 months ago
The bug here appears to be that there is a sent
state at all - I intended for all mutes to live in awaiting_expiry even if they aren't expirable when I wrote this. This patch isn't sufficient by itself to get to the end effect of not checking these states; I'd instead want to see:
permanent
create_local_mute
updated to correctly move a mute out of that state back into new
if it has its duration updated at all@andrewgodwin good point on create_local_mute
, had a quick patch on that.
as for sent
-> permanent
, it makes sense but seems more lines to change. also I kind of feel that we have to be open to some compromises if mute and block are sharing one model.
can we make a quick fix for the endless hourly loop first, before a refactor on states?
Yeah, with the create_local_mute
patch I think that's good for now - and you're right, the sharing of the model with Block does complicate things somewhat.
it seems currently the mute state stuck in
awaiting_expiry
and loop every hour even if it does not have to.let me know if I should add migration like