summary refs log tree commit diff
path: root/webclient/components
diff options
context:
space:
mode:
Diffstat (limited to 'webclient/components')
-rw-r--r--webclient/components/matrix/matrix-filter.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webclient/components/matrix/matrix-filter.js b/webclient/components/matrix/matrix-filter.js
index dba511db6e..c99c435b92 100644
--- a/webclient/components/matrix/matrix-filter.js
+++ b/webclient/components/matrix/matrix-filter.js
@@ -81,8 +81,8 @@ angular.module('matrixFilter', [])
                                 }
                                 if (member_id !== user_id) {
                                     // Make sure there is no duplicate user
-                                    if (-1 === invitedUserIDs.indexOf(message.state_key)) {
-                                        invitedUserIDs.push(message.state_key);
+                                    if (-1 === invitedUserIDs.indexOf(member_id)) {
+                                        invitedUserIDs.push(member_id);
                                     }
                                 }
                             }