-
Notifications
You must be signed in to change notification settings - Fork 19
Attempt to allow Draupnir to use room V12. #918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8457d50
to
ca1fa2c
Compare
const storeResult = await this.hashStore.storeRoomIdentification({ | ||
creator: details.creator, | ||
roomID: details.room_id, | ||
server: roomIDServerName(details.room_id), | ||
}); | ||
if (isError(storeResult)) { | ||
log.error( | ||
"Error storing room details for a room", | ||
roomID, | ||
details, | ||
storeResult | ||
); | ||
} | ||
// TODO: normally we would store details about the room, such as the creator, | ||
// and the server, but currently this is unviable. | ||
// https://matrix.org/blog/2025/07/security-predisclosure/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok this grand idea doesn't work, we actually do depend on being able to extract the creator in tests.. even though in reality this code is probably populating the database with bad data....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could always provide a bogus server name if it's not critical
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok no there is a check for that above, my bad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok so all of these changes were unecessary lemao
- Updated to matrix-basic-types 1.4.0 which changes the regex validating room ids. - Changed the package override so that all dependencies use matrix-basic-types 1.4.0, including the matrix-protection-suite. - Removed code that tries to store details about discovered rooms in the room takdedown protection. These were unreliable for so many reasons and also are now broken given the room origin cannot be extracted from the room id. Details for why this is can be found in the reviews of matrix-org/matrix-spec-proposals#4291.
ca1fa2c
to
b3ebec5
Compare
Updated to matrix-basic-types 1.4.0 which changes the regex validating room ids.
Changed the package override so that all dependencies use matrix-basic-types 1.4.0, including the matrix-protection-suite.
Removed code that tries to store details about discovered rooms in the room takdedown protection. These were unreliable for so many reasons and also are now broken given the room origin cannot be extracted from the room id. Details for why this is can be found in the reviews of MSC4291: Room IDs as hashes of the create event matrix-org/matrix-spec-proposals#4291.