Add functionality for refetching latest data after computer wakes up (#5120)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
36b62333b1
Коммит
0d8bb03b57
@@ -67,9 +67,15 @@ export function close() {
|
||||
WebSocketClient.close();
|
||||
}
|
||||
|
||||
export function reconnect() {
|
||||
function reconnectWebSocket() {
|
||||
close();
|
||||
initialize();
|
||||
}
|
||||
|
||||
export function reconnect(includeWebSocket = true) {
|
||||
if (includeWebSocket) {
|
||||
reconnectWebSocket();
|
||||
}
|
||||
|
||||
if (Client.teamId) {
|
||||
loadChannelsForCurrentUser();
|
||||
|
||||
Ссылка в новой задаче
Block a user