feat: server image
This commit is contained in:
@@ -229,6 +229,8 @@ export class RoomsEffects {
|
||||
isPrivate: room.isPrivate,
|
||||
userCount: 1,
|
||||
maxUsers: room.maxUsers || 50,
|
||||
icon: room.icon,
|
||||
iconUpdatedAt: room.iconUpdatedAt,
|
||||
tags: [],
|
||||
channels: room.channels ?? defaultChannels()
|
||||
}, endpoint ? {
|
||||
@@ -288,6 +290,8 @@ export class RoomsEffects {
|
||||
const resolvedRoom: Room = {
|
||||
...room,
|
||||
isPrivate: typeof serverInfo?.isPrivate === 'boolean' ? serverInfo.isPrivate : room.isPrivate,
|
||||
icon: serverInfo?.icon ?? room.icon,
|
||||
iconUpdatedAt: serverInfo?.iconUpdatedAt ?? room.iconUpdatedAt,
|
||||
channels: resolveRoomChannels(room.channels, serverInfo?.channels),
|
||||
slowModeInterval: serverInfo?.slowModeInterval ?? room.slowModeInterval,
|
||||
roles: serverInfo?.roles ?? room.roles,
|
||||
@@ -309,6 +313,8 @@ export class RoomsEffects {
|
||||
roles: resolvedRoom.roles,
|
||||
roleAssignments: resolvedRoom.roleAssignments,
|
||||
channelPermissions: resolvedRoom.channelPermissions,
|
||||
icon: resolvedRoom.icon,
|
||||
iconUpdatedAt: resolvedRoom.iconUpdatedAt,
|
||||
hasPassword: resolvedRoom.hasPassword,
|
||||
isPrivate: resolvedRoom.isPrivate
|
||||
});
|
||||
@@ -337,6 +343,8 @@ export class RoomsEffects {
|
||||
createdAt: Date.now(),
|
||||
userCount: 1,
|
||||
maxUsers: 50,
|
||||
icon: serverInfo.icon,
|
||||
iconUpdatedAt: serverInfo.iconUpdatedAt,
|
||||
channels: resolveRoomChannels(undefined, serverInfo.channels),
|
||||
slowModeInterval: serverInfo.slowModeInterval,
|
||||
roles: serverInfo.roles,
|
||||
@@ -372,6 +380,8 @@ export class RoomsEffects {
|
||||
createdAt: serverData.createdAt || Date.now(),
|
||||
userCount: serverData.userCount,
|
||||
maxUsers: serverData.maxUsers,
|
||||
icon: serverData.icon,
|
||||
iconUpdatedAt: serverData.iconUpdatedAt,
|
||||
channels: resolveRoomChannels(undefined, serverData.channels),
|
||||
slowModeInterval: serverData.slowModeInterval,
|
||||
roles: serverData.roles,
|
||||
@@ -557,6 +567,8 @@ export class RoomsEffects {
|
||||
hasPassword: !!serverData.hasPassword,
|
||||
isPrivate: serverData.isPrivate,
|
||||
maxUsers: serverData.maxUsers,
|
||||
icon: serverData.icon ?? room.icon,
|
||||
iconUpdatedAt: serverData.iconUpdatedAt ?? room.iconUpdatedAt,
|
||||
channels: resolveRoomChannels(room.channels, serverData.channels),
|
||||
slowModeInterval: serverData.slowModeInterval ?? room.slowModeInterval,
|
||||
roles: serverData.roles ?? room.roles,
|
||||
|
||||
Reference in New Issue
Block a user