diff --git a/tests/e2e/mock/server.py b/tests/e2e/mock/server.py index 97bbce1..4fdbec8 100644 --- a/tests/e2e/mock/server.py +++ b/tests/e2e/mock/server.py @@ -458,7 +458,7 @@ async def send_private_message( # Send direct message if user is online if isinstance(receiver, Peer): - to_send.append(peer.send_message(protocol_message)) + to_send.append(receiver.send_message(protocol_message)) else: if peer := self.find_peer_by_name(receiver): to_send.append(peer.send_message(protocol_message))