fix: Restart i/o when there are new transports in a sync message#7753
fix: Restart i/o when there are new transports in a sync message#7753
Conversation
|
We could restart i/o immediately when receiving a new transport in a sync message, see the commit I just pushed. The future needs boxing and a Not sure that is the correct thing to do, however; we're in the middle of receiving messages, this is not a good time to cancel and restart i/o. OTOH, changing transports is rare, so, maybe it's fine. A somewhat more "correct" solution would be to somehow put a cc @link2xt |
|
Thanks for fixing! But i think it should be
I think it's good enough, changing transports is rare indeed, also duplicate sync messages arriving from different transports shouldn't lead to restarting I/O multiple times because But note that i really caught this bug when switching to chatmail, so it's not smth that cannot happen to users. |
c2dad53 to
78b8eac
Compare
This currently fails because we don't start I/O for new transports synced from another device.
b2b5c4d to
7d6f8b7
Compare
|
The fix here isn't enough however because we don't fetch exisitng messages from the new synced transport, see If we can't fix this quickly, maybe we need to tell users that they should make sure that their other devices successfully added the new transport, before making it primary. |
|
I created an issue for it: #7843 |
This currently fails because we don't start I/O for new transports synced from another device.