« 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 <towerofnix@gmail.com>2021-04-23 11:44:58 -0300
commit533f2898871cc5c1a548308537fbcd4f8d4bbdf5 (patch)
tree68194e3ce3c8f14c928583709bda0bf3eef9efaf /ui.js
parent45f804fef3766e3183610b93ac3d1ffb89f08408 (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 fb0916e..aaf776c 100644
--- a/ui.js
+++ b/ui.js
@@ -561,11 +561,11 @@ 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)
@@ -1579,7 +1579,7 @@ class AppElement extends FocusElement {
     })
   }
 
-  newPartyTab(partyGrouplike) {
+  newPartyTab(socketId, partyGrouplike) {
     const listing = this.newGrouplikeListing()
     listing.loadGrouplike(partyGrouplike)
   }