mirror of
https://github.com/pezkuwichain/pezkuwi-wallet-android.git
synced 2026-04-22 02:07:58 +00:00
fix: use https telegram link instead of custom scheme for sharing
Custom scheme pezkuwiwallet:// is not clickable in WhatsApp and other messaging apps. Use https://t.me/pezkuwichainBot?start=ADDRESS which is universally clickable and auto-fills the referrer field.
This commit is contained in:
+2
-2
@@ -208,8 +208,8 @@ class CitizenshipViewModel(
|
||||
val metaAccount = selectedAccountUseCase.getSelectedMetaAccount()
|
||||
val address = metaAccount.addressIn(chain) ?: return@launch
|
||||
|
||||
val deepLink = "pezkuwiwallet://pezkuwi/open/citizenship?referrer=$address"
|
||||
val shareText = resourceManager.getString(R.string.citizenship_share_referral, deepLink, address)
|
||||
val telegramLink = "https://t.me/pezkuwichainBot?start=$address"
|
||||
val shareText = resourceManager.getString(R.string.citizenship_share_referral, telegramLink, address)
|
||||
_shareEvent.postValue(Event(shareText))
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "shareReferralLink failed", e)
|
||||
|
||||
Reference in New Issue
Block a user