fix: clean up some responders and commands

This commit is contained in:
sam 2024-09-02 15:06:10 +02:00
parent 9e0e53a428
commit 6e45b0f5b5
Signed by: sam
GPG key ID: 5F3C3C1B3166639D
4 changed files with 15 additions and 10 deletions

View file

@ -66,9 +66,8 @@ public class MessageDeleteResponder(
// Check if the message is an edit trigger message.
// If it is, the API will return a valid message for its ID, but the ID won't match either `Id` or `Original`.
// (We also won't have any system/member information stored for it)
if (msg is { System: null, Member: null } && MaybePkProxyTrigger(ev.ID) && false)
if (msg is { System: null, Member: null } && MaybePkProxyTrigger(ev.ID))
{
// TODO: remove the "false" if/when the API is updated to actually return this :neofox_woozy:
var pkMsg = await pluralkitApi.GetPluralKitMessageAsync(ev.ID.Value, ct);
if (pkMsg != null && pkMsg.Id != ev.ID.Value && pkMsg.Original != ev.ID.Value)
{