Compare commits

...

2 Commits

Author SHA1 Message Date
424be16ab0 🐛 Fix null value in event body 2024-06-28 19:33:59 +08:00
29a975235c 🍱 Update android manifest 2024-06-28 19:33:49 +08:00
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" />
<application
android:label="solian"
android:label="Solian"
android:name="${applicationName}"
android:icon="@mipmap/launcher_icon"
android:supportsRtl="true">

View File

@ -79,8 +79,8 @@ class EventMessageBody {
factory EventMessageBody.fromJson(Map<String, dynamic> json) =>
EventMessageBody(
text: json['text'],
algorithm: json['algorithm'],
text: json['text'] ?? '',
algorithm: json['algorithm'] ?? 'plain',
attachments: json['attachments'] != null
? List<int>.from(json['attachments'].map((x) => x))
: null,