From e4d83b5cf44228f91f36ea7c543783c9c1069622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Thu, 5 Jul 2018 19:22:29 +0200 Subject: [PATCH] server: Fix invite message printing. --- matrix/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix/server.py b/matrix/server.py index 3a2e0b9..755ab89 100644 --- a/matrix/server.py +++ b/matrix/server.py @@ -641,7 +641,6 @@ class MatrixServer: is_state_event ): def join(event, date, room, room_buffer, is_state_event): - room.handle_event(event) user = room.users[event.sender] buffer_user = RoomUser(user.name, event.sender) # TODO remove this duplication @@ -657,6 +656,7 @@ class MatrixServer: not is_state_event ) + room.handle_event(event) date = server_ts_to_weechat(event.timestamp) joined = False @@ -688,7 +688,7 @@ class MatrixServer: left = True elif isinstance(event, RoomMemberInvite): - room_buffer.invite(event.sender, date) + room_buffer.invite(event.invited_user, date) return # calculate room display name and set it as the buffer list name