force non-null fixes

This commit is contained in:
zlshames
2024-08-07 11:15:32 -04:00
parent 35980e21ba
commit bd74737365
41 changed files with 108 additions and 109 deletions

View File

@ -41,7 +41,7 @@ class ActionHandler extends GetxService {
}
messages.add(m..text = mainText);
if (!isNullOrEmpty(secondaryText)!) {
if (!isNullOrEmpty(secondaryText)) {
messages.add(Message(
text: secondaryText,
threadOriginatorGuid: m.threadOriginatorGuid,
@ -351,7 +351,7 @@ class ActionHandler extends GetxService {
Logger.info("Received $event from $source");
switch (event) {
case "new-message":
if (!isNullOrEmpty(data)!) {
if (!isNullOrEmpty(data)) {
final payload = ServerPayload.fromJson(data);
final message = Message.fromMap(payload.data);
if (message.isFromMe!) {
@ -373,7 +373,7 @@ class ActionHandler extends GetxService {
}
return;
case "updated-message":
if (!isNullOrEmpty(data)!) {
if (!isNullOrEmpty(data)) {
final payload = ServerPayload.fromJson(data);
IncomingItem item = IncomingItem.fromMap(QueueType.updatedMessage, payload.data);
if (useQueue) {