Эх сурвалжийг харах

Always send disconnect message if connected

Danilo Bargen 7 жил өмнө
parent
commit
7b6d87850f

+ 1 - 1
src/services/webclient.ts

@@ -600,7 +600,7 @@ export class WebClientService {
                 redirect: boolean = false): void {
         this.$log.info(this.logTag, 'Disconnecting...');
 
-        if (requestedByUs && this.stateService.rtcConnectionState === 'connected') {
+        if (requestedByUs && this.stateService.state === threema.GlobalConnectionState.Ok) {
             // Ask peer to disconnect too
             this.salty.sendApplicationMessage({type: 'disconnect', forget: deleteStoredData});
         }