about summary refs log tree commit diff
path: root/Bot/MRUBot.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Bot/MRUBot.cs')
-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") {