Skip to content

Commit 98dc08d

Browse files
authored
Merge pull request #25 from zjc19891106/main
fix strong reference
2 parents 8c617e6 + f5f6740 commit 98dc08d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: Sources/EaseChatUIKit/Classes/UI/Components/Chat/Views/MessageListView.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public let MessageInputBarHeight = CGFloat(52)
4242
func onMessageContentLongPressed(cell: MessageCell)
4343

4444
/// The method will call on message avatar clicked
45-
/// - Parameter profile: ``EaseProfileProtocol``
45+
/// - Parameter profile: ``ChatUserProfileProtocol``
4646
func onMessageAvatarClicked(profile: ChatUserProfileProtocol)
4747

4848
/// The method will call on message avatar long pressed.
49-
/// - Parameter profile: ``EaseProfileProtocol``
49+
/// - Parameter profile: ``ChatUserProfileProtocol``
5050
func onMessageAvatarLongPressed(profile: ChatUserProfileProtocol)
5151

5252
/// The method will call on input box event occur.
@@ -374,7 +374,7 @@ public let MessageInputBarHeight = CGFloat(52)
374374
let oldFrame = CGRect(x: 0, y: 0, width: self.frame.width, height: self.frame.height-BottomBarHeight-MessageInputBarHeight)
375375
if firstResponder {
376376
consoleLogInfo("self.inputBar.keyboardHeight: \(self.inputBar.keyboardHeight)", type: .debug)
377-
var space = 0
377+
var space = -24
378378
if self.inputBar.keyboardHeight == 132 || self.inputBar.keyboardHeight == 230 {
379379
space = Int(BottomBarHeight*2)
380380
}

Diff for: Sources/EaseChatUIKit/Classes/UI/Components/Contact/Controllers/GroupInfoViewController.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ import UIKit
361361
}
362362

363363
@objc open func disbandRequest() {
364-
self.service.disband(groupId: self.chatGroup.groupId) { error in
364+
self.service.disband(groupId: self.chatGroup.groupId) { [weak self] error in
365+
guard let `self` = self else { return }
365366
if error == nil {
366367
NotificationCenter.default.post(name: Notification.Name("EaseChatUIKit_leaveGroup"), object: self.chatGroup.groupId)
367368
self.pop()

0 commit comments

Comments
 (0)