Fix the small mechanical rules. [skip build]
This commit is contained in:
@@ -390,9 +390,9 @@ function ProfileBanner({
|
||||
setError(undefined);
|
||||
try {
|
||||
await mx.setAvatarUrl(upload.mxc);
|
||||
const userId = mx.getUserId();
|
||||
if (userId) {
|
||||
const user = mx.getUser(userId);
|
||||
const currentUserId = mx.getUserId();
|
||||
if (currentUserId) {
|
||||
const user = mx.getUser(currentUserId);
|
||||
if (user && user.avatarUrl !== upload.mxc) {
|
||||
user.setAvatarUrl(upload.mxc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user