aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/room.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/room.go b/test/room.go
index 4cdb73aa..b19c57dd 100644
--- a/test/room.go
+++ b/test/room.go
@@ -39,8 +39,8 @@ var (
roomIDCounter = int64(0)
)
-func UserIDForSender(roomID string, senderID string) (*spec.UserID, error) {
- return spec.NewUserID(senderID, true)
+func UserIDForSender(roomID string, senderID spec.SenderID) (*spec.UserID, error) {
+ return spec.NewUserID(string(senderID), true)
}
type Room struct {
@@ -168,7 +168,7 @@ func (r *Room) CreateEvent(t *testing.T, creator *User, eventType string, conten
}
builder := gomatrixserverlib.MustGetRoomVersion(r.Version).NewEventBuilderFromProtoEvent(&gomatrixserverlib.ProtoEvent{
- Sender: creator.ID,
+ SenderID: creator.ID,
RoomID: r.ID,
Type: eventType,
StateKey: mod.stateKey,