From 76b5689b8ed8e834dec3711d2a947134979f9f8e Mon Sep 17 00:00:00 2001 From: gnuxie Date: Tue, 24 May 2022 10:06:06 +0100 Subject: [PATCH] typo --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index cba13a6..b42038e 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -179,7 +179,7 @@ export async function getMessagesByUserIn(client: MatrixClient, sender: string, if (events.length > 0) { await cb(events); } - // This check exists only becuase of a Synapse compliance bug https://github.com/matrix-org/synapse/issues/12102. + // This check exists only because of a Synapse compliance bug https://github.com/matrix-org/synapse/issues/12102. // We also check after processing events as the `previousToken` can be 'null' if we are at the start of the steam // and `token` can also be 'null' as we have paginated the entire timeline, but there would be unprocessed events in the // chunk that was returned in this request.