Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Merge pull request #558 from matrix-org/yostyle/bugfix_user_preferenc…
Browse files Browse the repository at this point in the history
…e_crash

Set user id before storing it
  • Loading branch information
yostyle authored Sep 22, 2020
2 parents 38fc616 + 1def84d commit 3d3c42c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Improvements:
-

Bugfix:
-
- Fix a crash when it checks user presence (related to matrix-org/synapse#7606).

API Change:
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ public void onSuccess(User user) {
currentUser.lastActiveAgo = user.lastActiveAgo;
} else {
currentUser = user;
currentUser.user_id = userId;
}

currentUser.setLatestPresenceTs(System.currentTimeMillis());
Expand Down

0 comments on commit 3d3c42c

Please sign in to comment.