Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Removes unnecessary implementation for sample project's -shouldProces…
Browse files Browse the repository at this point in the history
…sTextForAutoCompletion method
  • Loading branch information
Ignacio Romero Zurbuchen committed Mar 3, 2016
1 parent a119355 commit 7785f10
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Examples/Messenger-Shared/MessageViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -491,19 +491,6 @@ - (BOOL)canShowTypingIndicator

- (BOOL)shouldProcessTextForAutoCompletion:(NSString *)text
{
if ([text hasPrefix:@"/"] && self.isAutoCompleting) {
if (self.foundPrefixRange.location != 0) {
return NO;
}

NSArray *components = [text componentsSeparatedByString:@" "];
NSString *command = [[components firstObject] stringByReplacingOccurrencesOfString:@"/" withString:@""];

if ([self.commands containsObject:command]) {
return NO;
}
}

return YES;
}

Expand Down

0 comments on commit 7785f10

Please sign in to comment.