Commit e03b9b3b authored by Alex朱枝文's avatar Alex朱枝文

SDK修改:增加隐藏右上角更多按钮的配置字段

parent 5b6b8e97
...@@ -46,6 +46,9 @@ ...@@ -46,6 +46,9 @@
*/ */
@interface TUIBaseChatViewController : UIViewController @interface TUIBaseChatViewController : UIViewController
// 是否隐藏更多按钮
@property(nonatomic, assign) BOOL needHideNaviMore;
// 文件预览代理
@property(nonatomic, weak) id<TUICustomOpenFileDelegate> filePreviewDelegate; @property(nonatomic, weak) id<TUICustomOpenFileDelegate> filePreviewDelegate;
@property(nonatomic, strong) TUIChatConversationModel *conversationData; @property(nonatomic, strong) TUIChatConversationModel *conversationData;
......
...@@ -296,6 +296,9 @@ static CGRect gCustomTopViewRect; ...@@ -296,6 +296,9 @@ static CGRect gCustomTopViewRect;
param[TUICore_TUIChatExtension_NavigationMoreItem_ItemSize] = NSStringFromCGSize(itemSize); param[TUICore_TUIChatExtension_NavigationMoreItem_ItemSize] = NSStringFromCGSize(itemSize);
param[TUICore_TUIChatExtension_NavigationMoreItem_FilterVideoCall] = @(!TUIChatConfig.defaultConfig.enableVideoCall); param[TUICore_TUIChatExtension_NavigationMoreItem_FilterVideoCall] = @(!TUIChatConfig.defaultConfig.enableVideoCall);
param[TUICore_TUIChatExtension_NavigationMoreItem_FilterAudioCall] = @(!TUIChatConfig.defaultConfig.enableAudioCall); param[TUICore_TUIChatExtension_NavigationMoreItem_FilterAudioCall] = @(!TUIChatConfig.defaultConfig.enableAudioCall);
if (self.needHideNaviMore) {
return;
}
NSArray<TUIExtensionInfo *> *extensionList = [TUICore getExtensionList:TUICore_TUIChatExtension_NavigationMoreItem_ClassicExtensionID param:param]; NSArray<TUIExtensionInfo *> *extensionList = [TUICore getExtensionList:TUICore_TUIChatExtension_NavigationMoreItem_ClassicExtensionID param:param];
TUIExtensionInfo *maxWeightInfo = [TUIExtensionInfo new]; TUIExtensionInfo *maxWeightInfo = [TUIExtensionInfo new];
maxWeightInfo.weight = INT_MIN; maxWeightInfo.weight = INT_MIN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment