Skip to content

Commit

Permalink
update default API hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
c99koder committed Dec 14, 2020
1 parent 0f45dc1 commit 562e7bc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions IRCCloud/Classes/LoginSplashViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -717,10 +717,10 @@ -(IBAction)loginButtonPressed:(id)sender {
NSString *realname = [name.text stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceCharacterSet];
CGFloat nameAlpha = name.alpha;

[[NetworkConnection sharedInstance] requestConfigurationWithHandler:^(IRCCloudJSONObject *config) {
#ifndef ENTERPRISE
IRCCLOUD_HOST = @"www.irccloud.com";
IRCCLOUD_HOST = @"api.irccloud.com";
#endif
[[NetworkConnection sharedInstance] requestConfigurationWithHandler:^(IRCCloudJSONObject *config) {
if(!config) {
dispatch_async(dispatch_get_main_queue(), ^{
[UIView beginAnimations:nil context:nil];
Expand Down
4 changes: 2 additions & 2 deletions IRCCloud/Classes/NetworkConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void FirebaseLog(NSString *format, ...) {
#elif defined(ENTERPRISE)
NSString *IRCCLOUD_HOST = @"";
#else
NSString *IRCCLOUD_HOST = @"www.irccloud.com";
NSString *IRCCLOUD_HOST = @"api.irccloud.com";
#endif
NSString *IRCCLOUD_PATH = @"/";

Expand Down Expand Up @@ -2525,7 +2525,7 @@ -(void)_logout:(NSString *)session {
if(error)
CLS_LOG(@"Unable to delete Firebase ID: %@", error);
}];
IRCCLOUD_HOST = @"www.irccloud.com";
IRCCLOUD_HOST = @"api.irccloud.com";
[self _postRequest:@"/chat/logout" args:@{@"session":session} handler:nil];
}];
#endif
Expand Down
2 changes: 1 addition & 1 deletion build-scripts/BUILD
Original file line number Diff line number Diff line change
@@ -1 +1 @@
141
142

0 comments on commit 562e7bc

Please sign in to comment.