diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-04-16 21:30:34 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-04-16 21:30:34 +0300 |
commit | b0caa48db10852059be48ce29a097d3acc006029 (patch) | |
tree | 5ffb7d6949d7d750a19f6bf3270b8d8d3a6e8908 | |
parent | 262c34a45a8744240a7847641742c75958eeaafa (diff) |
Set initial device name to "gomuks"
-rw-r--r-- | matrix/matrix.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/matrix/matrix.go b/matrix/matrix.go index 25c52ba..3a37e64 100644 --- a/matrix/matrix.go +++ b/matrix/matrix.go @@ -104,9 +104,10 @@ func (c *Container) Initialized() bool { // Login sends a password login request with the given username and password. func (c *Container) Login(user, password string) error { resp, err := c.client.Login(&gomatrix.ReqLogin{ - Type: "m.login.password", - User: user, - Password: password, + Type: "m.login.password", + User: user, + Password: password, + InitialDeviceDisplayName: "gomuks", }) if err != nil { return err |