Update Qlyra to 1.0.13 with messaging, media and plugin improvements
Build Android (FCM) / build-android-fcm (push) Canceled after 0s
Build Android / build-android (push) Canceled after 0s
Build iOS / build-ios (push) Canceled after 0s
Build Linux / build-linux (push) Canceled after 0s
Build macOS / build-macos (push) Canceled after 0s
Build Windows / build-windows (push) Canceled after 0s
Native crypto / native-crypto (push) Canceled after 0s
Release (main) / android (oneme) (push) Canceled after 0s
Release (main) / android (qlyra) (push) Canceled after 0s
Release (main) / windows (push) Canceled after 0s
Release (main) / linux (push) Canceled after 0s
Release (main) / macos (push) Canceled after 0s
Release (main) / ios (push) Canceled after 0s
Release (main) / release (push) Canceled after 0s
Build Android (FCM) / build-android-fcm (push) Canceled after 0s
Build Android / build-android (push) Canceled after 0s
Build iOS / build-ios (push) Canceled after 0s
Build Linux / build-linux (push) Canceled after 0s
Build macOS / build-macos (push) Canceled after 0s
Build Windows / build-windows (push) Canceled after 0s
Native crypto / native-crypto (push) Canceled after 0s
Release (main) / android (oneme) (push) Canceled after 0s
Release (main) / android (qlyra) (push) Canceled after 0s
Release (main) / windows (push) Canceled after 0s
Release (main) / linux (push) Canceled after 0s
Release (main) / macos (push) Canceled after 0s
Release (main) / ios (push) Canceled after 0s
Release (main) / release (push) Canceled after 0s
This commit is contained in:
@@ -5,8 +5,8 @@ import 'package:share_plus/share_plus.dart';
|
||||
|
||||
import '../../backend/modules/chats.dart';
|
||||
import '../../backend/modules/links.dart';
|
||||
import '../../core/cache/info_cache.dart';
|
||||
import '../../core/links/max_link.dart';
|
||||
import '../../core/links/profile_link.dart';
|
||||
import '../../core/storage/app_database.dart';
|
||||
import '../../core/utils/share_origin.dart';
|
||||
import '../../main.dart';
|
||||
@@ -115,13 +115,10 @@ Future<int?> _botIdOf(ResolvedLink? resolved) async {
|
||||
}
|
||||
|
||||
Future<bool> _shareOwnLink(BuildContext context) async {
|
||||
final myId = await currentAccountId();
|
||||
if (myId == 0) return false;
|
||||
final info = await ContactInfoFetch.get(myId);
|
||||
final link = await ownProfileLink();
|
||||
if (!context.mounted) return true;
|
||||
|
||||
final link = (info?.raw['link'] as String?)?.trim();
|
||||
if (link == null || link.isEmpty) {
|
||||
if (link == null) {
|
||||
showCustomNotification(context, 'У профиля нет публичной ссылки');
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user