aboutsummaryrefslogtreecommitdiff
path: root/matrix/pushrules
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-02-22 01:17:52 +0200
committerTulir Asokan <tulir@maunium.net>2020-02-22 01:17:52 +0200
commit455d9fc4c5726e4af9c40b36ee4f4ea18f65a8e9 (patch)
treeed61048b008b627371943370a16244c10e33602b /matrix/pushrules
parentecdb1166e1cead31518c058a0e7fd749e61b193e (diff)
Improve tags and add initial invite handling
Diffstat (limited to 'matrix/pushrules')
-rw-r--r--matrix/pushrules/condition.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/matrix/pushrules/condition.go b/matrix/pushrules/condition.go
index 0b7776a..cc62da1 100644
--- a/matrix/pushrules/condition.go
+++ b/matrix/pushrules/condition.go
@@ -22,6 +22,7 @@ import (
"strings"
"unicode"
+ "maunium.net/go/gomuks/matrix/rooms"
"maunium.net/go/mautrix"
"maunium.net/go/gomuks/lib/glob"
@@ -29,8 +30,8 @@ import (
// Room is an interface with the functions that are needed for processing room-specific push conditions
type Room interface {
- GetMember(mxid string) *mautrix.Member
- GetMembers() map[string]*mautrix.Member
+ GetMember(mxid string) *rooms.Member
+ GetMembers() map[string]*rooms.Member
GetSessionOwner() string
}