support for synchronizing user's profile image for shared channels.
Этот коммит содержится в:
Doug Lauder
2021-04-22 17:48:09 -04:00
коммит произвёл GitHub
родитель 7c7c4716e6
Коммит ff657bfdef
13 изменённых файлов: 533 добавлений и 45 удалений

Просмотреть файл

@@ -752,6 +752,14 @@ func (u *User) IsRemote() bool {
return u.RemoteId != nil && *u.RemoteId != ""
}
// GetRemoteID returns the remote id for this user or "" if not a remote user.
func (u *User) GetRemoteID() string {
if u.RemoteId != nil {
return *u.RemoteId
}
return ""
}
// GetProp fetches a prop value by name.
func (u *User) GetProp(name string) (string, bool) {
val, ok := u.Props[name]