-
-
Notifications
You must be signed in to change notification settings - Fork 831
Allow creating permalinks for unknown predecessor rooms (even though unlikely to be successful) #10113
Conversation
…unlikely to be successful)
If this lands I think it warrants reopening element-hq/element-web#2925 as that was closed as everything moved to vias, this regresses that |
if (prevRoom) { | ||
permalinkCreator.load(); | ||
} else { | ||
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId}, unlikely to be successful`); |
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.
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId}, unlikely to be successful`); | |
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId}, it's possible that this room doesn't actually exist but we will give the user what they want`); |
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.
Alternative and probably more accurate than my first suggestion:
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId}, unlikely to be successful`); | |
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId}, unlikely to be routable on its own without via servers but we will give the user what they want`); |
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.
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId}, unlikely to be successful`); | |
logger.warn(`Creating permalink for unknown predecessor room ${predecessor.roomId},`+ | |
'unlikely to be successful as rooms without via servers are usually not routable'); |
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.
The phrasing here makes successful
ambiguous about what will be successful. It kinda makes it seem like creating the permalink is unlikely to be successful.
Whereas I think we're trying to explain that a permalink for a random room ID is unlikely to get the user to right place.
Type: Defect
Partially fixes: element-hq/element-web#24453
Reopens: element-hq/element-web#2925
Here's what your changelog entry will look like:
🐛 Bug Fixes