Make EditAccount show a spinner until ready
Instead of crashing if userInfo is not yet available. statusMessage is removed for now from UserUpdated events, and the users model items will have a "loading" property.
This commit is contained in:
@@ -11,8 +11,8 @@ function onAccountDeleted(userId) {
|
||||
accounts.popWhere({userId}, 1)
|
||||
}
|
||||
|
||||
function onUserUpdated(userId, displayName, avatarUrl, statusMessage) {
|
||||
users.upsert({userId}, {userId, displayName, avatarUrl, statusMessage})
|
||||
function onUserUpdated(userId, displayName, avatarUrl) {
|
||||
users.upsert({userId}, {userId, displayName, avatarUrl, loading: false})
|
||||
}
|
||||
|
||||
function onDeviceUpdated(userId, deviceId, ed25519Key, trust, displayName,
|
||||
|
Reference in New Issue
Block a user