Skip to content

Commit

Permalink
Send queued messages to merged user accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Bensge committed Nov 8, 2023
1 parent 4ee8549 commit 7167af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spybot/recorder/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def handle_old_sessions(self, clients):
return clients

def send_queued_messages(self, client_id: int, user: TSUser):
msgs = QueuedClientMessage.objects.filter(tsuser=user).order_by("-date").all()
msgs = QueuedClientMessage.objects.filter(tsuser__in=user.merged_user.tsusers).order_by("-date").all()

for message in msgs:
self.ts.poke_client(client_id, "You got an important message from Spybot! Check out my private message "
Expand Down

0 comments on commit 7167af8

Please sign in to comment.