You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Convert alias links in room header topics to local permalinks
Fixes https://github.com/vector-im/riot-web/issues/12605
This commit is contained in:
@@ -16,7 +16,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
import {baseUrl} from "./utils/permalinks/SpecPermalinkConstructor";
|
||||
import {tryTransformPermalinkToLocalHref} from "./utils/permalinks/Permalinks";
|
||||
import {tryTransformEntityToPermalink, tryTransformPermalinkToLocalHref} from "./utils/permalinks/Permalinks";
|
||||
|
||||
function matrixLinkify(linkify) {
|
||||
// Text tokens
|
||||
@@ -221,7 +221,7 @@ matrixLinkify.options = {
|
||||
case 'userid':
|
||||
case 'groupid':
|
||||
default: {
|
||||
return tryTransformPermalinkToLocalHref(href);
|
||||
return tryTransformEntityToPermalink(href);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user