Skip to content

Commit

Permalink
Merge pull request #23 from yoonzm/master
Browse files Browse the repository at this point in the history
UserOffline reason
  • Loading branch information
syanbo authored Nov 22, 2018
2 parents 8ec4a1e + 3eeed54 commit b3542e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions android/src/main/java/com/syan/agora/AgoraModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ public void run() {
WritableMap map = Arguments.createMap();
map.putString("type", "onUserOffline");
map.putInt("uid", uid);
map.putInt("reason", reason);
commonEvent(map);
}
});
Expand Down
1 change: 1 addition & 0 deletions ios/RCTAgora/RCTAgora.m
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ - (void)rtcEngine:(AgoraRtcEngineKit *)engine didOfflineOfUid:(NSUInteger)uid re
NSMutableDictionary *params = @{}.mutableCopy;
params[@"type"] = @"onUserOffline";
params[@"uid"] = [NSNumber numberWithInteger:uid];
params[@"reason"] = [NSNumber numberWithInteger:reason];

[self sendEvent:params];
}
Expand Down

0 comments on commit b3542e1

Please sign in to comment.