File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -347,9 +347,18 @@ - (dispatch_queue_t)methodQueue {
347
347
RCT_EXPORT_METHOD (setPromptOptionsEnabled:(BOOL )chatEnabled
348
348
feedback:(BOOL )bugReportEnabled
349
349
chat:(BOOL )feedbackEnabled) {
350
- [Instabug setPromptOptionsEnabledWithBug: bugReportEnabled
351
- feedback: feedbackEnabled
352
- chat: chatEnabled];
350
+ IBGPromptOption promptOption = IBGPromptOptionNone;
351
+ if (chatEnabled) {
352
+ promptOption |= IBGPromptOptionChat;
353
+ }
354
+ if (bugReportEnabled) {
355
+ promptOption |= IBGPromptOptionBug;
356
+ }
357
+ if (feedbackEnabled) {
358
+ promptOption |= IBGPromptOptionFeedback;
359
+ }
360
+
361
+ [IBGBugReporting setPromptOptions: promptOption];
353
362
}
354
363
355
364
RCT_EXPORT_METHOD (isInstabugNotification:(NSDictionary *)notification callback:(RCTResponseSenderBlock)callBack) {
You can’t perform that action at this time.
0 commit comments