Skylar-Tech / node-red-contrib-matrix-chat

Matrix chat server support for Node-RED
GNU General Public License v3.0
31 stars 10 forks source link

Disconnected state not being correctly recognized #34

Closed skylord123 closed 2 years ago

skylord123 commented 2 years ago

The logic we are using to determine whether the client is connected or not is incorrect. This needs to be fixed.

I first noticed this problem on my home server: image Even though it says it is disconnected it actually is still online and will send images just fine.

The correct logic is here: https://github.com/matrix-org/matrix-js-sdk/blob/1c895432edb8d57dfa7938399e966f9404107796/src/client.ts#L8921-L9042