mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-21 18:22:00 -08:00
Update users.go
Added functions for First and Last names
This commit is contained in:
parent
392ee8f57b
commit
1addf9fca7
16
vendor/github.com/matterbridge/matterclient/users.go
generated
vendored
16
vendor/github.com/matterbridge/matterclient/users.go
generated
vendored
@ -12,6 +12,22 @@ func (m *Client) GetNickName(userID string) string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Client) GetFirstName(userID string) string {
|
||||
if user := m.GetUser(userID); user != nil {
|
||||
return user.FirstName
|
||||
}
|
||||
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Client) GetLastName(userID string) string {
|
||||
if user := m.GetUser(userID); user != nil {
|
||||
return user.LastName
|
||||
}
|
||||
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Client) GetStatus(userID string) string {
|
||||
res, _, err := m.Client.GetUserStatus(userID, "")
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user