Skip to content

Commit 88a97b5

Browse files
authored
Merge pull request #28 from easemob/dev
build error fix
2 parents 53e1b9e + b153a87 commit 88a97b5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Example/ChatroomUIKit/OCUIComponentsExampleViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ - (void)viewDidLoad {
1919
[super viewDidLoad];
2020
// Do any additional setup after loading the view.
2121
self.view.backgroundColor = UIColor.whiteColor;
22-
ActionSheet *sheet = [[ActionSheet alloc] initWithItems:@[[[ActionSheetItem alloc] initWithTitle:@"Normal" type:ActionSheetItemTypeNormal tag:@""]] title:nil message:nil action:^(id<ActionSheetItemProtocol> _Nonnull item) {
22+
ActionSheet *sheet = [[ActionSheet alloc] initWithItems:@[[[ActionSheetItem alloc] initWithTitle:@"Normal" type:ActionSheetItemTypeNormal tag:@""]] title:nil message:nil action:^(id<ActionSheetItemProtocol> _Nonnull item,id object) {
2323

2424
}];
2525
[self.view addSubview:sheet];

Example/ChatroomUIKit/UIWithBusinessViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ extension UIWithBusinessViewController {
118118
}
119119

120120
private func handleUserAction(user: UserInfoProtocol,muteTab: Bool) {
121-
DialogManager.shared.showUserActions(actions: muteTab ? Appearance.defaultOperationMuteUserActions:Appearance.defaultOperationUserActions) { item in
121+
DialogManager.shared.showUserActions(actions: muteTab ? Appearance.defaultOperationMuteUserActions:Appearance.defaultOperationUserActions) { item,object in
122122
switch item.tag {
123123
case "Mute":
124124
ChatroomUIKitClient.shared.roomService?.mute(userId: user.userId, completion: { [weak self] error in
@@ -151,7 +151,7 @@ extension UIWithBusinessViewController {
151151
}
152152
}
153153
default:
154-
item.action?(item)
154+
item.action?(item,user)
155155
}
156156
}
157157
}

0 commit comments

Comments
 (0)