From 9d425f8d8446a61c84439023eaa214bc64513bd0 Mon Sep 17 00:00:00 2001 From: HUI Date: Mon, 5 Jun 2023 17:28:30 +0800 Subject: [PATCH] fix: `onMemberCountUpdated` issue on iOS --- .github/workflows/ci.yml | 3 +++ ios/Classes/RTMChannel.swift | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc79704..8b802ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,9 @@ concurrency: cancel-in-progress: true on: + push: + branches: + - main pull_request: branches: - main diff --git a/ios/Classes/RTMChannel.swift b/ios/Classes/RTMChannel.swift index aec227f..a81b845 100644 --- a/ios/Classes/RTMChannel.swift +++ b/ios/Classes/RTMChannel.swift @@ -38,9 +38,9 @@ class RTMChannel: NSObject, FlutterStreamHandler, AgoraRtmChannelDelegate { return nil } - func channel(_ channel: AgoraRtmChannel, memberCountUpdated memberCount: Int32) { + func channel(_ channel: AgoraRtmChannel, memberCount count: Int32) { sendEvent(eventName: "onMemberCountUpdated", params: [ - "memberCount": memberCount, + "memberCount": count, ]) }