Skip to content

Commit

Permalink
Rename Guid to guid
Browse files Browse the repository at this point in the history
  • Loading branch information
iwiznia committed Oct 13, 2020
1 parent e38c936 commit be0365e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/libs/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import CONFIG from '../CONFIG';
import * as Pusher from './Pusher/pusher';
import ROUTES from '../ROUTES';
import Str from './Str';
import Guid from './Guid';
import guid from './guid';
import redirectToSignIn from './actions/SignInRedirect';

// Queue for network requests so we don't lose actions done by the user while offline
Expand Down Expand Up @@ -168,7 +168,7 @@ function request(command, parameters, type = 'post') {
// If Expensify login, it's the users first time signing in and we need to
// create a login for the user
if (parameters.useExpensifyLogin) {
return createLogin(Str.generateDeviceLoginID(), Guid())
return createLogin(Str.generateDeviceLoginID(), guid())
.then(() => setSuccessfulSignInData(response, parameters.exitTo));
}
})
Expand Down
4 changes: 2 additions & 2 deletions src/libs/ActiveClientManager/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import _ from 'underscore';
import Guid from '../Guid';
import guid from '../guid';
import Ion from '../Ion';
import IONKEYS from '../../IONKEYS';

const clientID = Guid();
const clientID = guid();
const maxClients = 20;

let activeClients;
Expand Down
4 changes: 2 additions & 2 deletions src/libs/Str.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _ from 'underscore';
import {AllHtmlEntities} from 'html-entities';
import Guid from './Guid';
import guid from './guid';


const Str = {
Expand Down Expand Up @@ -59,7 +59,7 @@ const Str = {
* @returns {string}
*/
generateDeviceLoginID() {
return `react-native-chat-${Guid()}`;
return `react-native-chat-${guid()}`;
},

/**
Expand Down
File renamed without changes.

0 comments on commit be0365e

Please sign in to comment.