1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Update user info for device and trust changes

This ensure the user info panel updates automatically for device and trust
changes.

Fixes https://github.com/vector-im/riot-web/issues/12134`
This commit is contained in:
J. Ryan Stinnett
2020-01-29 21:55:27 +00:00
parent d362cc0f41
commit 7a5bf8f102
2 changed files with 22 additions and 12 deletions

View File

@ -77,8 +77,8 @@ export default class DeviceListener {
this._recheck();
}
_onDeviceVerificationChanged = (users) => {
if (!users.includes(MatrixClientPeg.get().getUserId())) return;
_onDeviceVerificationChanged = (userId) => {
if (userId !== MatrixClientPeg.get().getUserId()) return;
this._recheck();
}