[polari] ircParser: Delegate /NAMES command to user-list popover



commit e37776e79b8370bfccdf3dbcab45f7659ee29b6a
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Dec 31 21:01:14 2021 +0100

    ircParser: Delegate /NAMES command to user-list popover
    
    The list of users in a room can be fairly large, so popping up
    a quick in-app notification with long columns of names for a
    couple of seconds isn't great.
    
    The existing user-list popover already provides a cleaner,
    searchable UI for the same data, so leverage that instead
    of the notification.
    
    Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/247>

 src/ircParser.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/ircParser.js b/src/ircParser.js
index 6fb70ddf..4d2760e6 100644
--- a/src/ircParser.js
+++ b/src/ircParser.js
@@ -191,10 +191,7 @@ export default class IrcParser {
             break;
         }
         case 'NAMES': {
-            let { channel } = this._room;
-            let members = channel.group_dup_members_contacts().map(m => m.alias);
-            output = this._createFeedbackGrid(
-                vprintf(_('Users on %s:'), channel.identifier), members);
+            this._app.activate_action('user-list', null);
             break;
         }
         case 'NICK': {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]