File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212#import " TopicDetailViewController.h"
1313#import " FileListViewController.h"
1414#import " FileViewController.h"
15+ #import " MRDetailViewController.h"
1516
1617#import " ProjectCommitsViewController.h"
1718#import " PRDetailViewController.h"
@@ -199,7 +200,16 @@ - (void)goToVCWithItem:(HtmlMediaItem *)clickedItem activity:(ProjectActivity *)
199200 if ([proAct.line_note.noteable_type isEqualToString: @" Commit" ]) {
200201 vc = [CommitFilesViewController vcWithPath: request_path];
201202 }else {
202- vc = [PRDetailViewController vcWithPath: request_path];
203+ if ([request_path rangeOfString: @" merge" ].location == NSNotFound )// _roaldSearchText
204+ {
205+ vc = [PRDetailViewController vcWithPath: request_path];
206+ }
207+ else
208+ {
209+ vc = [MRDetailViewController vcWithPath: request_path];
210+
211+ }
212+
203213 }
204214 if (vc) {
205215 [self .navigationController pushViewController: vc animated: YES ];
Original file line number Diff line number Diff line change 2929#import " FolderToMoveViewController.h"
3030#import " FileViewController.h"
3131#import " ProjectCommitsViewController.h"
32+ #import " MRDetailViewController.h"
3233
3334#import " ProjectCommitsViewController.h"
3435#import " PRDetailViewController.h"
@@ -472,7 +473,15 @@ - (void)goToVCWithItem:(HtmlMediaItem *)clickedItem activity:(ProjectActivity *)
472473 if ([proAct.line_note.noteable_type isEqualToString: @" Commit" ]) {
473474 vc = [CommitFilesViewController vcWithPath: request_path];
474475 }else {
475- vc = [PRDetailViewController vcWithPath: request_path];
476+ if ([request_path rangeOfString: @" merge" ].location == NSNotFound )// _roaldSearchText
477+ {
478+ vc = [PRDetailViewController vcWithPath: request_path];
479+ }
480+ else
481+ {
482+ vc = [MRDetailViewController vcWithPath: request_path];
483+ }
484+
476485 }
477486 if (vc) {
478487 [self .navigationController pushViewController: vc animated: YES ];
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ + (UIViewController *)analyseVCFromLinkStr:(NSString *)linkStr analyseMethod:(An
235235 }
236236 }
237237 if (!analyseVC) {
238- if ([path rangeOfString: @" qingjoin " ].location != NSNotFound )// _roaldSearchText
238+ if ([path rangeOfString: @" merge " ].location == NSNotFound )// _roaldSearchText
239239 {
240240 analyseVC = [PRDetailViewController vcWithPath: path];
241241 }
You can’t perform that action at this time.
0 commit comments