Skip to main content

chat-user-properties

id

The unique identifier of the user.

public let id: UserId

name

Name for this user.

public var name: String?

imageURL

Image (avatar) URL for this user.

public var imageURL: URL?

isOnline

An indicator whether the user is online.

public let isOnline: Bool

isBanned

An indicator whether the user is banned.

public let isBanned: Bool

isFlaggedByCurrentUser

An indicator whether the user is flagged by the current user.

public let isFlaggedByCurrentUser: Bool

userRole

The role of the user.

public let userRole: UserRole

userCreatedAt

The date the user was created.

public let userCreatedAt: Date

userUpdatedAt

The date the user info was updated the last time.

public let userUpdatedAt: Date

lastActiveAt

The date the user was last time active.

public let lastActiveAt: Date?

teams

Teams the user belongs to.

public let teams: Set<TeamId>

You need to enable multi-tenancy if you want to use this, else it'll be empty. Refer to docs for more info.

extraData

public let extraData: [String: RawJSON]

Methods

hash(into:)

public func hash(into hasher: inout Hasher) 

Operators

==

public static func == (lhs: ChatUser, rhs: ChatUser) -> Bool

Did you find this page helpful?