mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-04-05 17:15:40 +00:00
nitpicks
This commit is contained in:
parent
f196ca198e
commit
b7a6eea72b
@ -889,18 +889,17 @@ export default {
|
||||
userProfiles[u.id] = { id: u.id, name: u.name, avatar: u.avatar }
|
||||
}
|
||||
fixedRoom._userProfiles = userProfiles
|
||||
if (!isGroupRoom) {
|
||||
if (isGroupRoom) {
|
||||
if (!fixedRoom.avatar) {
|
||||
fixedRoom.avatar = room.group?.avatar?.w320 || room.group?.avatar || null
|
||||
}
|
||||
} else {
|
||||
const otherUser = room.users.find((u) => u.id !== this.currentUser.id)
|
||||
fixedRoom.userProfile = otherUser
|
||||
? userProfiles[otherUser.id]
|
||||
: { name: fixedRoom.roomName }
|
||||
}
|
||||
if (!fixedRoom.avatar) {
|
||||
if (isGroupRoom) {
|
||||
fixedRoom.avatar = room.group?.avatar?.w320 || room.group?.avatar || null
|
||||
} else {
|
||||
const otherUser = fixedRoom.users.find((u) => u.id !== this.currentUser.id)
|
||||
fixedRoom.avatar = otherUser?.avatar
|
||||
if (!fixedRoom.avatar) {
|
||||
fixedRoom.avatar = otherUser?.avatar?.w320 || null
|
||||
}
|
||||
}
|
||||
return fixedRoom
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user