Skip to content

Commit 55bd288

Browse files
fix: ensure to store device IDs for legacy login
Signed-off-by: The one with the braid <[email protected]>
1 parent a5af471 commit 55bd288

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/client.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2102,6 +2102,10 @@ class Client extends MatrixApi {
21022102
olmAccount = newOlmAccount ?? olmAccount;
21032103
}
21042104

2105+
if (newDeviceID != null) {
2106+
await _database?.storeDeviceId(newDeviceID);
2107+
}
2108+
21052109
// If we are refreshing the session, we are done here:
21062110
if (onLoginStateChanged.value == LoginState.softLoggedOut) {
21072111
if (newRefreshToken != null && accessToken != null && userID != null) {

0 commit comments

Comments
 (0)