소스 검색

Report disconnection cause

Otherwise the user sees no message when trying to log in with the wrong password.
JC Brand 1 개월 전
부모
커밋
8f3317dc77
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/headless/shared/connection/index.js

+ 1 - 1
src/headless/shared/connection/index.js

@@ -280,7 +280,7 @@ export class Connection extends Strophe.Connection {
     }
 
     async finishDisconnection () {
-        this.setConnectionStatus(Strophe.Status.DISCONNECTED);
+        this.setConnectionStatus(Strophe.Status.DISCONNECTED, this.disconnection_reason);
         const { api } = _converse;
         // Properly tear down the session so that it's possible to manually connect again.
         log.debug('DISCONNECTED');