Skip to content
Snippets Groups Projects
Commit a0bdbf87 authored by Jono Wenger's avatar Jono Wenger
Browse files

Added a mechanism over the bindings to get the user ID in client.go

parent 41ea0cc9
No related branches found
No related tags found
No related merge requests found
......@@ -176,6 +176,12 @@ func (cl *Client) GetUsername() string {
return cl.client.GetSession().GetCurrentUser().Username
}
func (cl *Client) GetUserID() []byte {
globals.Log.INFO.Printf("Binding call: GetUserID()")
return cl.client.GetSession().GetCurrentUser().User[:]
}
type MessageReceiverCallback interface {
Callback(err error)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment