broadband-modem-mbim: MbimSmsStatusFlag is flags, not an enum

We can directly use this change instead of requiring the libmbim
version bump because the numeric values of the enum didn't change:
  NEW_MESSAGE == 2 == (1<<1)

Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/673
This commit is contained in:
Aleksander Morgado
2022-12-05 22:38:57 +00:00
parent b515f72bb0
commit 913022ed90
+1 -1
View File
@@ -5127,7 +5127,7 @@ sms_notification (MMBroadbandModemMbim *self,
&index,
NULL)) {
mm_obj_dbg (self, "received SMS store status update: '%s'", mbim_sms_status_flag_get_string (flag));
if (flag == MBIM_SMS_STATUS_FLAG_NEW_MESSAGE)
if (flag & MBIM_SMS_STATUS_FLAG_NEW_MESSAGE)
sms_notification_read_stored_sms (self, index);
}
break;