From 0710b7f77ddc8263c237c5cf6d8c133c29405497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 30 Oct 2018 16:15:57 +0100 Subject: [PATCH] buffer: Don't add already added users to the RoomBuffer. --- matrix/buffer.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matrix/buffer.py b/matrix/buffer.py index 57ff631..b26c97f 100644 --- a/matrix/buffer.py +++ b/matrix/buffer.py @@ -847,6 +847,10 @@ class RoomBuffer(object): # yet to come, so do nothing return + # User is already added don't add him again. + if user_id in self.displayed_nicks: + return + short_name = shorten_sender(user.user_id) # TODO handle this special case for discord bridge users and