aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authordevonh <devon.dmytro@gmail.com>2023-06-07 17:14:35 +0000
committerGitHub <noreply@github.com>2023-06-07 17:14:35 +0000
commit8ea1a11105ea7e66aa459537bcbef0de606147cd (patch)
tree62a539b761d078978226752c8d3ef23f1a80e677 /test
parent7a1fd7f512ce06a472a2051ee63eae4a270eb71a (diff)
Use SenderID Type (#3105)
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,