« get me outta code hell

identifier per socket connection - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/ui.js
diff options
context:
space:
mode:
author(quasar) nebula <towerofnix@gmail.com>2021-04-23 11:44:58 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-16 22:00:45 -0300
commitb64d923daa2aad9ca848dd8ff57c016a51ac5383 (patch)
tree992905b8123d6b8589daae1e206ce4f45e444b8c /ui.js
parentb47f2968742b77378791f171c819957546b4fc7d (diff)
identifier per socket connection
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui.js b/ui.js
index b9c417a..a83446c 100644
--- a/ui.js
+++ b/ui.js
@@ -587,11 +587,11 @@ export default class AppElement extends FocusElement {
     this.log.newLogMessage(messageInfo)
   }
 
-  handleGotPartyGrouplike(partyGrouplike) {
-    this.newPartyTab(partyGrouplike)
+  handleGotPartyGrouplike(socketId, partyGrouplike) {
+    this.newPartyTab(socketId, partyGrouplike)
   }
 
-  handlePartyGrouplikeUpdated(partyGrouplike) {
+  handlePartyGrouplikeUpdated(socketId, partyGrouplike) {
     for (const grouplikeListing of this.tabber.tabberElements) {
       if (grouplikeListing.grouplike === partyGrouplike) {
         grouplikeListing.loadGrouplike(partyGrouplike, false)
@@ -1950,7 +1950,7 @@ export default class AppElement extends FocusElement {
     })
   }
 
-  newPartyTab(partyGrouplike) {
+  newPartyTab(socketId, partyGrouplike) {
     const listing = this.newGrouplikeListing()
     listing.loadGrouplike(partyGrouplike)
   }