[FIX] Delete push token when logout (#1173)

* Fix delete push token

* Update @rocket.chat/sdk
This commit is contained in:
Djorkaeff Alexandre 2019-09-17 14:17:55 -03:00 committed by Diego Mello
parent 96eb86927a
commit adb8c7b379
3 changed files with 63 additions and 859 deletions

View File

@ -17,6 +17,7 @@ import log from '../utils/log';
import I18n from '../i18n';
import database from '../lib/database';
import EventEmitter from '../utils/events';
import Navigation from '../lib/Navigation';
const getServer = state => state.server.server;
const loginWithPasswordCall = args => RocketChat.loginWithPassword(args);
@ -121,6 +122,7 @@ const handleLoginSuccess = function* handleLoginSuccess({ user }) {
};
const handleLogout = function* handleLogout() {
Navigation.navigate('AuthLoading');
const server = yield select(getServer);
if (server) {
try {

View File

@ -23,8 +23,8 @@
}
},
"dependencies": {
"@rocket.chat/sdk": "1.0.0-alpha.31",
"@nozbe/watermelondb": "^0.14.0",
"@rocket.chat/sdk": "1.0.0-alpha.30",
"bugsnag-react-native": "^2.22.3",
"commonmark": "git+https://github.com/RocketChat/commonmark.js.git",
"commonmark-react-renderer": "git+https://github.com/RocketChat/commonmark-react-renderer.git",

918
yarn.lock

File diff suppressed because it is too large Load Diff