mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 10:35:19 +00:00
Fix missing message ID & update for core changes
This commit is contained in:
parent
d8ae307671
commit
717a28a446
@ -255,8 +255,7 @@ public class PushGroupSendJob extends PushSendJob implements InjectableType {
|
|||||||
.asGroupMessage(group)
|
.asGroupMessage(group)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
// TODO: Message ID
|
return messageSender.sendMessage(messageId, addresses, unidentifiedAccess, groupDataMessage);
|
||||||
return messageSender.sendMessage(0, addresses, unidentifiedAccess, groupDataMessage);
|
|
||||||
} else {
|
} else {
|
||||||
SignalServiceGroup group = new SignalServiceGroup(GroupUtil.getDecodedId(groupId));
|
SignalServiceGroup group = new SignalServiceGroup(GroupUtil.getDecodedId(groupId));
|
||||||
SignalServiceDataMessage groupMessage = SignalServiceDataMessage.newBuilder()
|
SignalServiceDataMessage groupMessage = SignalServiceDataMessage.newBuilder()
|
||||||
@ -273,8 +272,7 @@ public class PushGroupSendJob extends PushSendJob implements InjectableType {
|
|||||||
.withPreviews(previews)
|
.withPreviews(previews)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
// TODO: Message ID
|
return messageSender.sendMessage(messageId, addresses, unidentifiedAccess, groupMessage);
|
||||||
return messageSender.sendMessage(0, addresses, unidentifiedAccess, groupMessage);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -83,7 +83,8 @@ class LokiAPIDatabase(context: Context, helper: SQLCipherOpenHelper) : Database(
|
|||||||
return TextSecurePreferences.getProfileName(context)
|
return TextSecurePreferences.getProfileName(context)
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun setMessageID(signalID: Long, lokiID: Long) {
|
override fun updateMessageIDIfNeeded(signalID: Long, lokiID: Long) {
|
||||||
|
if (signalID == lokiID) return
|
||||||
DatabaseFactory.getMmsDatabase(context).updateMessageID(signalID, lokiID)
|
DatabaseFactory.getMmsDatabase(context).updateMessageID(signalID, lokiID)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user