[FIX] Delete push token when logout (#1173)
* Fix delete push token * Update @rocket.chat/sdk
This commit is contained in:
parent
96eb86927a
commit
adb8c7b379
|
@ -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 {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue