提交
This commit is contained in:
@@ -199,6 +199,8 @@ typedef NS_OPTIONS(NSInteger, TUIChatInputBarMoreMenuItem) {
|
||||
*/
|
||||
@property (nonatomic, weak) id<TUIChatShortcutViewDataSource> shortcutViewDataSource;
|
||||
|
||||
@property (nonatomic, assign)BOOL isAppStore;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
||||
@@ -399,9 +399,12 @@
|
||||
#pragma mark-- UITextViewDelegate
|
||||
- (void)textViewDidBeginEditing:(UITextView *)textView {
|
||||
NSInteger isCanChat = [[NSUserDefaults standardUserDefaults] integerForKey:@"kIsCanChat"];
|
||||
#if DEBUG
|
||||
isCanChat = 1;
|
||||
#endif
|
||||
//#if DEBUG
|
||||
// isCanChat = 1;
|
||||
//#endif
|
||||
if (TUIChatConfig.defaultConfig.isAppStore) {
|
||||
isCanChat = 1;
|
||||
}
|
||||
if (isCanChat != 1) {
|
||||
[self.inputTextView resignFirstResponder];
|
||||
[self alertChat];
|
||||
|
||||
Reference in New Issue
Block a user