1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-13 08:02:38 +03:00

Clarify that we don't need tyo recheck

This commit is contained in:
David Baker
2020-04-29 10:55:44 +01:00
parent 75c680715f
commit 89a910c718

View File

@@ -110,6 +110,9 @@ export default class DeviceListener {
_onWillUpdateDevices = async (users) => { _onWillUpdateDevices = async (users) => {
const myUserId = MatrixClientPeg.get().getUserId(); const myUserId = MatrixClientPeg.get().getUserId();
if (users.includes(myUserId)) this._ensureDeviceIdsAtStartPopulated(); if (users.includes(myUserId)) this._ensureDeviceIdsAtStartPopulated();
// No need to do a recheck here: we just need to get a snapshot of our devices
// before we download asny new ones.
} }
_onDevicesUpdated = (users) => { _onDevicesUpdated = (users) => {