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
|
||||
// See https://matrix.org/docs/spec/client_server/r0.2.0.html#m-file
|
||||
// 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",
|
||||
FileMessage{
|
||||
MsgType: "m.file",
|
||||
|
|
|
@ -163,6 +163,7 @@ type RespSync struct {
|
|||
} `json:"rooms"`
|
||||
}
|
||||
|
||||
// LOL what lol could lol this lol do ?
|
||||
type RespTurnServer struct {
|
||||
Username string `json:"username"`
|
||||
Password string `json:"password"`
|
||||
|
|
Loading…
Reference in New Issue