@@ -214,7 +214,6 @@ class PusherChannelsFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAw
214214 }
215215
216216 override fun onSubscriptionSucceeded (channelName : String ) {
217- // For presence channels we wait for the onUsersInformationReceived event.
218217 if (! channelName.startsWith(" presence-" )) {
219218 callback(
220219 " onEvent" , mapOf (
@@ -239,17 +238,16 @@ class PusherChannelsFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAw
239238 }
240239
241240 override fun onAuthenticationFailure (message : String , e : Exception ) {
242- // Log.e(TAG, "Authentication failure due to $message, exception was $e")
243241 callback(
244242 " onSubscriptionError" , mapOf (
245243 " message" to message,
246244 " error" to e.toString()
247245 )
248246 )
249- } // Other ChannelEventListener methods
250-
247+ }
248+
249+ // Other ChannelEventListener methods
251250 override fun onUsersInformationReceived (channelName : String? , users : MutableSet <User >? ) {
252- // Log.i(TAG, "Users received: $users")
253251 val gson = Gson ()
254252 val channel = pusher!! .getPresenceChannel(channelName)
255253 val hash = mutableMapOf<String , Any ?>()
@@ -275,7 +273,6 @@ class PusherChannelsFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAw
275273 }
276274
277275 override fun onDecryptionFailure (event : String? , reason : String? ) {
278- // Log.e(TAG, "Decryption failure due to $event, exception was $reason")
279276 callback(
280277 " onDecryptionFailure" , mapOf (
281278 " event" to event,
@@ -285,7 +282,6 @@ class PusherChannelsFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAw
285282 }
286283
287284 override fun userSubscribed (channelName : String , user : User ) {
288- // Log.i(TAG, "A new user joined channel [$channelName]: ${user.id}, ${user.info}")
289285 callback(
290286 " onMemberAdded" , mapOf (
291287 " channelName" to channelName,
@@ -298,7 +294,6 @@ class PusherChannelsFlutterPlugin : FlutterPlugin, MethodCallHandler, ActivityAw
298294 }
299295
300296 override fun userUnsubscribed (channelName : String , user : User ) {
301- // Log.i(TAG, "A user left channel [$channelName]: ${user.id}, ${user.info}")
302297 callback(
303298 " onMemberRemoved" , mapOf (
304299 " channelName" to channelName,
0 commit comments