-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed - Incorrect operator check logic in frozen group channel
- Loading branch information
Showing
33 changed files
with
109 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+23.3 KB
(100%)
SendBirdUIKit.framework.dSYM/Contents/Resources/DWARF/SendBirdUIKit
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// | ||
// SBUChannelManager.swift | ||
// SendBirdUIKit | ||
// | ||
// Created by Tez Park on 2020/06/18. | ||
// Copyright © 2020 SendBird, Inc. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
class SBUChannelManager: NSObject { | ||
|
||
/// This function can check whether a specific UserId is an operator in the channel. | ||
/// - Parameters: | ||
/// - channel: GroupChannel object | ||
/// - userId: used to verify that it is an operator | ||
/// - Returns: Returns `true` if it is an operator. | ||
/// - Since: 1.0.10 | ||
static func isOperator(channel: SBDGroupChannel?, userId: String?) -> Bool { | ||
guard let channel = channel, let userId = userId else { return false } | ||
|
||
if let role = channel.getMember(userId)?.role, role == .operator { | ||
return true | ||
} | ||
else { | ||
return false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file modified
BIN
+96 Bytes
(100%)
SendBirdUIKit.framework/Modules/SendBirdUIKit.swiftmodule/Project/arm.swiftsourceinfo
Binary file not shown.
Binary file modified
BIN
+96 Bytes
(100%)
...UIKit.framework/Modules/SendBirdUIKit.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo
Binary file not shown.
Binary file modified
BIN
+96 Bytes
(100%)
SendBirdUIKit.framework/Modules/SendBirdUIKit.swiftmodule/Project/arm64.swiftsourceinfo
Binary file not shown.
Binary file modified
BIN
+96 Bytes
(100%)
...UIKit.framework/Modules/SendBirdUIKit.swiftmodule/Project/armv7-apple-ios.swiftsourceinfo
Binary file not shown.
Binary file modified
BIN
+96 Bytes
(100%)
SendBirdUIKit.framework/Modules/SendBirdUIKit.swiftmodule/Project/armv7.swiftsourceinfo
Binary file not shown.
Binary file modified
BIN
+96 Bytes
(100%)
...mework/Modules/SendBirdUIKit.swiftmodule/Project/i386-apple-ios-simulator.swiftsourceinfo
Binary file not shown.
Binary file modified
BIN
+96 Bytes
(100%)
SendBirdUIKit.framework/Modules/SendBirdUIKit.swiftmodule/Project/i386.swiftsourceinfo
Binary file not shown.
Binary file modified
BIN
+96 Bytes
(100%)
...work/Modules/SendBirdUIKit.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo
Binary file not shown.
Binary file modified
BIN
+96 Bytes
(100%)
SendBirdUIKit.framework/Modules/SendBirdUIKit.swiftmodule/Project/x86_64.swiftsourceinfo
Binary file not shown.
Binary file modified
BIN
+1.38 KB
(100%)
SendBirdUIKit.framework/Modules/SendBirdUIKit.swiftmodule/arm.swiftmodule
Binary file not shown.
Binary file modified
BIN
+1.38 KB
(100%)
SendBirdUIKit.framework/Modules/SendBirdUIKit.swiftmodule/arm64-apple-ios.swiftmodule
Binary file not shown.
Binary file modified
BIN
+1.38 KB
(100%)
SendBirdUIKit.framework/Modules/SendBirdUIKit.swiftmodule/arm64.swiftmodule
Binary file not shown.
Binary file modified
BIN
+1.38 KB
(100%)
SendBirdUIKit.framework/Modules/SendBirdUIKit.swiftmodule/armv7-apple-ios.swiftmodule
Binary file not shown.
Binary file modified
BIN
+1.38 KB
(100%)
SendBirdUIKit.framework/Modules/SendBirdUIKit.swiftmodule/armv7.swiftmodule
Binary file not shown.
Binary file modified
BIN
+1.38 KB
(100%)
...irdUIKit.framework/Modules/SendBirdUIKit.swiftmodule/i386-apple-ios-simulator.swiftmodule
Binary file not shown.
Binary file modified
BIN
+1.38 KB
(100%)
SendBirdUIKit.framework/Modules/SendBirdUIKit.swiftmodule/i386.swiftmodule
Binary file not shown.
Binary file modified
BIN
+1.38 KB
(100%)
...dUIKit.framework/Modules/SendBirdUIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule
Binary file not shown.
Binary file modified
BIN
+1.38 KB
(100%)
SendBirdUIKit.framework/Modules/SendBirdUIKit.swiftmodule/x86_64.swiftmodule
Binary file not shown.
Binary file modified
BIN
+13 Bytes
(100%)
SendBirdUIKit.framework/SBUChannelSettingCell.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
-5 Bytes
(100%)
SendBirdUIKit.framework/SBUChannelSettingCell.nib/runtime.nib
Binary file not shown.
Binary file modified
BIN
+3 Bytes
(100%)
SendBirdUIKit.framework/SBUMessageInputView.nib/objects-11.0+.nib
Binary file not shown.
Binary file modified
BIN
+11 Bytes
(100%)
SendBirdUIKit.framework/SBUMessageInputView.nib/runtime.nib
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.