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

Set user id before storing it #558

Merged
merged 3 commits into from
Sep 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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