优化长按聊天记录 如果是自己 不要显示举报

This commit is contained in:
2026-02-04 18:39:25 +08:00
parent 3ed120106e
commit db9f07d199
3 changed files with 47 additions and 2 deletions

View File

@@ -28,6 +28,13 @@ typedef NS_ENUM(NSInteger, KBChatMessageActionType) {
@property (nonatomic, weak) id<KBChatMessageActionPopViewDelegate> delegate;
/// 是否显示 “Report” 操作(默认 YES
/// - 当长按的是右侧用户消息KBChatUserMessageCell可设置为 NO。
@property (nonatomic, assign) BOOL showsReportAction;
/// 根据是否显示 Report 计算推荐高度
+ (CGFloat)preferredHeightWithShowsReportAction:(BOOL)showsReportAction;
@end
NS_ASSUME_NONNULL_END