removing double the

This commit is contained in:
chagai95 2021-07-29 13:35:03 +02:00 committed by GitHub
parent f45338be4c
commit 426389194e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ object PermalinkParser {
.filter { it.isNotEmpty() } .filter { it.isNotEmpty() }
.take(2) .take(2)
// the the element-based domain permalinks (e.g. https://app.element.io/#/user/@chagai95:matrix.org) don't have the mxid in the first param (like matrix.to does - https://matrix.to/#/@chagai95:matrix.org) but rather in the second after /user/ so /user/mxid // the element-based domain permalinks (e.g. https://app.element.io/#/user/@chagai95:matrix.org) don't have the mxid in the first param (like matrix.to does - https://matrix.to/#/@chagai95:matrix.org) but rather in the second after /user/ so /user/mxid
var identifier = params.getOrNull(0); var identifier = params.getOrNull(0);
if (identifier.equals("user")) { if (identifier.equals("user")) {
identifier = params.getOrNull(1) identifier = params.getOrNull(1)