Fix "first message does not send"

Issue #55
This commit is contained in:
N-Pex 2021-03-01 13:06:46 +01:00
parent 3b3e21b8da
commit 929b81d4b4
2 changed files with 22 additions and 1 deletions

View file

@ -188,7 +188,7 @@ class Util {
Promise.all(setAsKnownPromises)
.then(() => {
// All devices now marked as "known", try to resend
matrixClient.resendEvent(err.event)
matrixClient.resendEvent(err.event, matrixClient.getRoom(err.event.getRoomId()))
.then((result) => {
console.log("Message sent: ", result);
resolve(true);