Fix proxying in channels without message history + reduce proxy latency

This commit is contained in:
Ske
2021-08-08 21:56:24 +02:00
parent 1720a28af2
commit 4c17ee3d89
6 changed files with 35 additions and 36 deletions

View File

@@ -95,6 +95,8 @@ namespace PluralKit.Bot
throw new PKError("Could not find a recent message to edit.");
msg = await _repo.GetMessage(conn, recent.Mid);
if (msg == null)
throw new PKError("Could not find a recent message to edit.");
}
return msg;