groupme/bridgestate.go
Sumner Evans 715107f5a2
treewide: upgrading to latest mautrix standards
Signed-off-by: Sumner Evans <sumner@beeper.com>
2022-10-21 16:06:39 -05:00

18 lines
301 B
Go

package main
import "fmt"
func (user *User) GetRemoteID() string {
if user == nil || !user.GMID.Valid() {
return ""
}
return user.GMID.String()
}
func (user *User) GetRemoteName() string {
if user == nil || !user.GMID.Valid() {
return ""
}
return fmt.Sprintf("+%s", user.GMID.String())
}