aboutsummaryrefslogtreecommitdiff
path: root/interface
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-03-22 21:44:46 +0200
committerTulir Asokan <tulir@maunium.net>2018-03-22 21:45:02 +0200
commit152b89ed5e6a4a3edbfc40222b4388049a213b82 (patch)
treee8507622e14f873128dd457b0f95f13cc460b459 /interface
parent702a75a8c0355737e3e62735b59fe30bee7e42f4 (diff)
Add support for m.emote. Fixes #6
Diffstat (limited to 'interface')
-rw-r--r--interface/matrix.go2
-rw-r--r--interface/ui.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/interface/matrix.go b/interface/matrix.go
index 459f99d..4202ebf 100644
--- a/interface/matrix.go
+++ b/interface/matrix.go
@@ -28,7 +28,7 @@ type MatrixContainer interface {
Login(user, password string) error
Start()
Stop()
- SendMessage(roomID, message string) (string, error)
+ SendMessage(roomID, msgtype, message string) (string, error)
SendTyping(roomID string, typing bool)
JoinRoom(roomID string) error
LeaveRoom(roomID string) error
diff --git a/interface/ui.go b/interface/ui.go
index bded310..9b2d0f1 100644
--- a/interface/ui.go
+++ b/interface/ui.go
@@ -47,7 +47,7 @@ type MainView interface {
SaveAllHistory()
SetTyping(roomID string, users []string)
- AddServiceMessage(roomID string, message string)
+ AddServiceMessage(roomID *widget.RoomView, message string)
ProcessMessageEvent(evt *gomatrix.Event) (*widget.RoomView, *types.Message)
ProcessMembershipEvent(evt *gomatrix.Event, new bool) (*widget.RoomView, *types.Message)
}