-
-
Notifications
You must be signed in to change notification settings - Fork 827
Conversation
Adds element-hq/element-web#1767 Signed-off-by: Travis Ralston <travpc@gmail.com>
Signed-off-by: Travis Ralston <travpc@gmail.com>
342b41f
to
c0f4c3f
Compare
Signed-off-by: Travis Ralston <travpc@gmail.com>
Signed-off-by: Travis Ralston <travpc@gmail.com>
c0f4c3f
to
2d51707
Compare
Signed-off-by: Travis Ralston <travpc@gmail.com>
Signed-off-by: Travis Ralston <travpc@gmail.com>
f761360
to
3889df6
Compare
This code only kicks in if the user was ignored after an event was sent. The homeserver should prevent other events from coming in. Signed-off-by: Travis Ralston <travpc@gmail.com>
Signed-off-by: Travis Ralston <travpc@gmail.com>
Signed-off-by: Travis Ralston <travpc@gmail.com>
Signed-off-by: Travis Ralston <travpc@gmail.com>
48f6872
to
0363f73
Compare
@@ -228,6 +257,7 @@ module.exports = React.createClass({ | |||
} | |||
|
|||
this._refreshMediaDevices(); | |||
this._refreshIgnoredUsers(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess technically we might want to also _refreshIgnoreUsers() when we receive an ignoring event from the js-sdk. But that's such an edge case i'm happy to ignore it for now :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(although given we already have an onAction() here, surely it's just 3 lines to add in a:
case 'ignore_state_changed':
this._refreshIgnoredUsers();
break;
...which almost seems worth it.)
Signed-off-by: Travis Ralston <travpc@gmail.com>
this looks excellent - thank you!!! sorry it took us a few days to get to it; with lúke away, me stuck in funding hell and dave up to his eyeballs in perf work we're a bit undermanned. |
Thanks @ara4n! 2 days is pretty good compared to some of the other projects I contribute to (/me glares at 2015 PR) |
yeah, glad we don't have any like that... glances at #588 :(( |
General ticket: element-hq/element-web#1490
/(un)ignore <user>
slash commandRequires