Skip to content

Commit 4057ea4

Browse files
committed
App: Fix subscription events.
Koi SDK bug.
1 parent e2773e7 commit 4057ea4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/core/src/main/java/co/casterlabs/caffeinated/app/auth/AuthInstance.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import co.casterlabs.koi.api.listener.KoiEventUtil;
2323
import co.casterlabs.koi.api.listener.KoiLifeCycleHandler;
2424
import co.casterlabs.koi.api.types.KoiEvent;
25+
import co.casterlabs.koi.api.types.RoomId;
2526
import co.casterlabs.koi.api.types.events.RoomstateEvent;
2627
import co.casterlabs.koi.api.types.events.StreamStatusEvent;
2728
import co.casterlabs.koi.api.types.events.UserUpdateEvent;
@@ -149,6 +150,7 @@ public void onSupportedFeatures(List<KoiIntegrationFeatures> features) {
149150
// }
150151
// }
151152

153+
@SuppressWarnings("deprecation")
152154
@KoiEventHandler
153155
public void onUserUpdate(UserUpdateEvent e) {
154156
// boolean isAuthConfirmation = this.userData == null;
@@ -158,7 +160,7 @@ public void onUserUpdate(UserUpdateEvent e) {
158160
if (this.roomstate == null) {
159161
// TODO get rid of this by broadcasting roomstates across all platforms on
160162
// connect. (KOI)
161-
this.roomstate = RoomstateEvent.builder()
163+
this.roomstate = RoomstateEvent.builder(RoomId.of(e.streamer.toSimpleProfile(), e.streamer.link))
162164
.streamer(e.streamer.toSimpleProfile())
163165
.timestamp(Instant.now())
164166
.build();

app/plugin_sdk/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<dependency>
2222
<groupId>co.casterlabs</groupId>
2323
<artifactId>koi-sdk</artifactId>
24-
<version>74d68f3</version>
24+
<version>2dc74d3</version>
2525
<scope>compile</scope>
2626
</dependency>
2727
<dependency>

0 commit comments

Comments
 (0)