Unused Utils.getCommunityIdFromShareLink removed

This commit is contained in:
Michał Cieślak 2024-10-22 18:03:56 +02:00 committed by Michał
parent e2341414a3
commit 5e11027d3a
1 changed files with 0 additions and 13 deletions

View File

@ -824,19 +824,6 @@ QtObject {
return getCommunityChannelShareLink(communityId, channelId)
}
function getCommunityIdFromShareLink(link) {
let index = link.lastIndexOf("/c/")
if (index === -1) {
return ""
}
const communityKey = link.substring(index + 3)
if (globalUtilsInst.isCompressedPubKey(communityKey)) {
// is zQ.., need to be converted to standard compression
return globalUtilsInst.changeCommunityKeyCompression(communityKey)
}
return communityKey
}
function getCommunityDataFromSharedLink(link) {
const index = link.lastIndexOf("/c/")
if (index === -1)