mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 03:29:36 +00:00
minor: add examples for address resolver scheme [skip ci]
This commit is contained in:
parent
3473cfe0a0
commit
301cb3b7e0
1 changed files with 2 additions and 0 deletions
|
@ -134,6 +134,7 @@ class AddressResolver {
|
|||
Future<ParsedAddress> resolve(BuildContext context, String text, CryptoCurrency currency) async {
|
||||
final ticker = currency.title;
|
||||
try {
|
||||
// twitter handle example: @username
|
||||
if (text.startsWith('@') && !text.substring(1).contains('@')) {
|
||||
if (settingsStore.lookupsTwitter) {
|
||||
final formattedName = text.substring(1);
|
||||
|
@ -165,6 +166,7 @@ class AddressResolver {
|
|||
}
|
||||
}
|
||||
|
||||
// Mastodon example: @username@hostname.xxx
|
||||
if (text.startsWith('@') && text.contains('@', 1) && text.contains('.', 1)) {
|
||||
if (settingsStore.lookupsMastodon) {
|
||||
final subText = text.substring(1);
|
||||
|
|
Loading…
Reference in a new issue