aboutsummaryrefslogtreecommitdiff
path: root/interface
diff options
context:
space:
mode:
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)
}