about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-29 19:38:00 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-29 19:38:00 +0200
commit8bc2f7a36a47586f5d9345ead248d8f226943da8 (patch)
tree2dc4492258a75a672dc421579cf0c2f30a60bdd4
parentAdd more stuff, add unit tests (diff)
downloadLibMatrix.ExampleBot-8bc2f7a36a47586f5d9345ead248d8f226943da8.tar.xz
Unit tests, small refactors
-rw-r--r--Bot/MRUBot.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bot/MRUBot.cs b/Bot/MRUBot.cs
index f04ec3a..0211f74 100644
--- a/Bot/MRUBot.cs
+++ b/Bot/MRUBot.cs
@@ -57,7 +57,7 @@ public class MRUBot : IHostedService {
         hs.SyncHelper.InviteReceivedHandlers.Add(async Task (args) => {
             var inviteEvent =
                 args.Value.InviteState.Events.FirstOrDefault(x =>
-                    x.Type == "m.room.member" && x.StateKey == hs.WhoAmI.UserId);
+                    x.Type == "m.room.member" && x.StateKey == hs.UserId);
             _logger.LogInformation(
                 $"Got invite to {args.Key} by {inviteEvent.Sender} with reason: {(inviteEvent.TypedContent as RoomMemberEventContent).Reason}");
             if (inviteEvent.Sender.EndsWith(":rory.gay") || inviteEvent.Sender == "@mxidupwitch:the-apothecary.club") {