diff --git a/lib/common/widgets/text_field/controller.dart b/lib/common/widgets/text_field/controller.dart index 1000cb16..a17a0d59 100644 --- a/lib/common/widgets/text_field/controller.dart +++ b/lib/common/widgets/text_field/controller.dart @@ -763,6 +763,7 @@ class RichTextEditingController extends TextEditingController { final emote = e.emote; if (emote != null) { return WidgetSpan( + alignment: PlaceholderAlignment.middle, child: Padding( padding: const EdgeInsets.symmetric(horizontal: 2), child: NetworkImgLayer( diff --git a/lib/utils/accounts/account.dart b/lib/utils/accounts/account.dart index 9fd4801d..d7a13ff0 100644 --- a/lib/utils/accounts/account.dart +++ b/lib/utils/accounts/account.dart @@ -73,10 +73,12 @@ class LoginAccount implements Account { LoginAccount(this.cookieJar, this.accessKey, this.refresh, [Set? type]) - : type = type ?? {}; + : type = type ?? {} { + cookieJar.setBuvid3(); + } LoginAccount.fromJson(Map json) { - cookieJar = BiliCookieJar.fromJson(json['cookies']); + cookieJar = BiliCookieJar.fromJson(json['cookies'])..setBuvid3(); accessKey = json['accessKey']; refresh = json['refresh']; type = (json['type'] as Iterable?)