Skip to content

Commit 4bba57c

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

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
@@ -2112,6 +2112,10 @@ class Client extends MatrixApi {
21122112
olmAccount = newOlmAccount ?? olmAccount;
21132113
}
21142114

2115+
if (newDeviceID != null) {
2116+
await _database?.storeDeviceId(newDeviceID);
2117+
}
2118+
21152119
// If we are refreshing the session, we are done here:
21162120
if (onLoginStateChanged.value == LoginState.softLoggedOut) {
21172121
if (newRefreshToken != null && accessToken != null && userID != null) {

0 commit comments

Comments
 (0)