element-hq / element-android

A Matrix collaboration client for Android.
https://element.io/
Apache License 2.0
3.32k stars 706 forks source link

After upgrading server key, the client is unable to receive (silently) and send messages until relogging-in #2532

Open xuhdev opened 3 years ago

xuhdev commented 3 years ago

Describe the bug After upgrading server key, the client is unable to receive any message silently, and when sending messages, the messages stay gray and I won't know it can't succeed until I tap the message.

To Reproduce Steps to reproduce the behavior:

  1. Log in.
  2. Upgrade server (synapse) key (using let's encrypt), and restart synapse.
  3. Open the android client.

Expected behavior The client should either work properly, or if the new key has an issue, it should pop up and ask about the new key.

Smartphone (please complete the following information):

Additional context

bmarty commented 3 years ago

This is a known limitation from 4bb804fbf7664adf593147d2c5ddc34200417ab3 (advertized here: https://github.com/vector-im/element-android/pull/1570), and correspond to that TODO: https://github.com/vector-im/element-android/blob/develop/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/network/Request.kt#L58

It was not P1 but I agree it has to be handled properly in a near future.