From ce9c0baf4085c8199771f89c29b3d60fe399db26 Mon Sep 17 00:00:00 2001 From: sacOO7 Date: Fri, 8 Nov 2024 15:35:34 +0530 Subject: [PATCH] Fixed RoomStatusEventEmitter typo, Refactored DefaultStatus, using composition over inheritance for RoomStatusEventEmitter --- .../src/main/java/com/ably/chat/RoomStatus.kt | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/chat-android/src/main/java/com/ably/chat/RoomStatus.kt b/chat-android/src/main/java/com/ably/chat/RoomStatus.kt index c169554..25823cd 100644 --- a/chat-android/src/main/java/com/ably/chat/RoomStatus.kt +++ b/chat-android/src/main/java/com/ably/chat/RoomStatus.kt @@ -163,7 +163,7 @@ data class RoomStatusChange( val error: ErrorInfo? = null, ) -open class RoomStatusEvenEmitter : EventEmitter() { +class RoomStatusEventEmitter : EventEmitter() { override fun apply(listener: RoomStatus.Listener?, event: RoomLifecycle?, vararg args: Any?) { try { @@ -174,7 +174,7 @@ open class RoomStatusEvenEmitter : EventEmitter