Skip to content

Commit

Permalink
Fix rtm will lost p2p message after second login
Browse files Browse the repository at this point in the history
  • Loading branch information
vince-hz committed Sep 12, 2024
1 parent 904de7d commit 328cc70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Flat/Modules/ClassRoom/Rtm/AgoraRtm.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ class AgoraRtm: NSObject, RtmProvider {
case .connected:
return Single<Void>.create { [weak self] observer in
self?.agoraKit.logout { _, error in
self?.agoraKit.destroy()
if let error, error.errorCode != .ok {
observer(.failure("rtm logout \(error.errorCode.rawValue)"))
return
Expand Down

0 comments on commit 328cc70

Please sign in to comment.