fix(bot): add callback to update message count after proxying

also re-add -with-last-message flag :D
This commit is contained in:
spiral 2022-12-10 16:50:22 +00:00
parent 8e0454a13b
commit 24db9f28c2
No known key found for this signature in database
GPG key ID: 244A11E4B0BCF40E
9 changed files with 32 additions and 17 deletions

View file

@ -435,6 +435,9 @@ public class ProxyService
await _redis.SetOriginalMid(triggerMessage.Id, proxyMessage.Id);
}
Task UpdateMemberForSentMessage()
=> _repo.UpdateMemberForSentMessage(sentMessage.Member!.Value);
Task LogMessageToChannel() =>
_logChannel.LogMessage(sentMessage, triggerMessage, proxyMessage).AsTask();
@ -474,6 +477,7 @@ public class ProxyService
DeleteProxyTriggerMessage(),
SaveMessageInDatabase(),
SaveMessageInRedis(),
UpdateMemberForSentMessage(),
LogMessageToChannel(),
SaveLatchAutoproxy(),
DispatchWebhook()