Fix things
This commit is contained in:
@ -17,12 +17,12 @@
|
||||
package ifc
|
||||
|
||||
import (
|
||||
"maunium.net/go/gomatrix"
|
||||
"maunium.net/go/mautrix"
|
||||
"maunium.net/go/gomuks/matrix/rooms"
|
||||
)
|
||||
|
||||
type MatrixContainer interface {
|
||||
Client() *gomatrix.Client
|
||||
Client() *mautrix.Client
|
||||
InitClient() error
|
||||
Initialized() bool
|
||||
|
||||
@ -33,14 +33,14 @@ type MatrixContainer interface {
|
||||
Logout()
|
||||
|
||||
SendPreferencesToMatrix()
|
||||
SendMessage(roomID string, msgtype gomatrix.MessageType, message string) (string, error)
|
||||
SendMarkdownMessage(roomID string, msgtype gomatrix.MessageType, message string) (string, error)
|
||||
SendMessage(roomID string, msgtype mautrix.MessageType, message string) (string, error)
|
||||
SendMarkdownMessage(roomID string, msgtype mautrix.MessageType, message string) (string, error)
|
||||
SendTyping(roomID string, typing bool)
|
||||
MarkRead(roomID, eventID string)
|
||||
JoinRoom(roomID, server string) (*rooms.Room, error)
|
||||
LeaveRoom(roomID string) error
|
||||
|
||||
GetHistory(roomID, prevBatch string, limit int) ([]*gomatrix.Event, string, error)
|
||||
GetHistory(roomID, prevBatch string, limit int) ([]*mautrix.Event, string, error)
|
||||
GetRoom(roomID string) *rooms.Room
|
||||
|
||||
Download(mxcURL string) ([]byte, string, string, error)
|
||||
|
@ -19,7 +19,7 @@ package ifc
|
||||
import (
|
||||
"time"
|
||||
|
||||
"maunium.net/go/gomatrix"
|
||||
"maunium.net/go/mautrix"
|
||||
"maunium.net/go/gomuks/matrix/pushrules"
|
||||
"maunium.net/go/gomuks/matrix/rooms"
|
||||
"maunium.net/go/tcell"
|
||||
@ -50,7 +50,7 @@ type MainView interface {
|
||||
UpdateTags(room *rooms.Room)
|
||||
|
||||
SetTyping(roomID string, users []string)
|
||||
ParseEvent(roomView RoomView, evt *gomatrix.Event) Message
|
||||
ParseEvent(roomView RoomView, evt *mautrix.Event) Message
|
||||
|
||||
NotifyMessage(room *rooms.Room, message Message, should pushrules.PushActionArrayShould)
|
||||
InitialSyncDone()
|
||||
@ -73,8 +73,8 @@ type RoomView interface {
|
||||
SetTyping(users []string)
|
||||
UpdateUserList()
|
||||
|
||||
NewMessage(id, sender string, msgtype gomatrix.MessageType, text string, timestamp time.Time) Message
|
||||
NewTempMessage(msgtype gomatrix.MessageType, text string) Message
|
||||
NewMessage(id, sender string, msgtype mautrix.MessageType, text string, timestamp time.Time) Message
|
||||
NewTempMessage(msgtype mautrix.MessageType, text string) Message
|
||||
AddMessage(message Message, direction MessageDirection)
|
||||
AddServiceMessage(message string)
|
||||
}
|
||||
@ -111,8 +111,8 @@ type Message interface {
|
||||
SetID(id string)
|
||||
ID() string
|
||||
|
||||
SetType(msgtype gomatrix.MessageType)
|
||||
Type() gomatrix.MessageType
|
||||
SetType(msgtype mautrix.MessageType)
|
||||
Type() mautrix.MessageType
|
||||
|
||||
NotificationContent() string
|
||||
|
||||
|
Reference in New Issue
Block a user