mirror of https://github.com/matrix-org/gomatrix
Appease pedants
This commit is contained in:
parent
d0c8c3e5b0
commit
2705b0af4c
|
@ -453,7 +453,7 @@ func (cli *Client) SendText(roomID, text string) (*RespSendEvent, error) {
|
||||||
// SendFile sends an m.room.message event into the given room with a msgtype of m.file
|
// SendFile sends an m.room.message event into the given room with a msgtype of m.file
|
||||||
// See https://matrix.org/docs/spec/client_server/r0.2.0.html#m-file
|
// See https://matrix.org/docs/spec/client_server/r0.2.0.html#m-file
|
||||||
// FIXME add thumbnail support
|
// FIXME add thumbnail support
|
||||||
func (cli *Client) SendFile(roomID, body, url, filename string, info FileInfo, thumb_info, thumb_url interface{}) (*RespSendEvent, error) {
|
func (cli *Client) SendFile(roomID, body, url, filename string, info FileInfo, thumbInfo, thumbURL interface{}) (*RespSendEvent, error) {
|
||||||
return cli.SendMessageEvent(roomID, "m.room.message",
|
return cli.SendMessageEvent(roomID, "m.room.message",
|
||||||
FileMessage{
|
FileMessage{
|
||||||
MsgType: "m.file",
|
MsgType: "m.file",
|
||||||
|
|
|
@ -163,6 +163,7 @@ type RespSync struct {
|
||||||
} `json:"rooms"`
|
} `json:"rooms"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// LOL what lol could lol this lol do ?
|
||||||
type RespTurnServer struct {
|
type RespTurnServer struct {
|
||||||
Username string `json:"username"`
|
Username string `json:"username"`
|
||||||
Password string `json:"password"`
|
Password string `json:"password"`
|
||||||
|
|
Loading…
Reference in New Issue