mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-24 02:25: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)
|
||||
.build();
|
||||
|
||||
// TODO: Message ID
|
||||
return messageSender.sendMessage(0, addresses, unidentifiedAccess, groupDataMessage);
|
||||
return messageSender.sendMessage(messageId, addresses, unidentifiedAccess, groupDataMessage);
|
||||
} else {
|
||||
SignalServiceGroup group = new SignalServiceGroup(GroupUtil.getDecodedId(groupId));
|
||||
SignalServiceDataMessage groupMessage = SignalServiceDataMessage.newBuilder()
|
||||
@ -273,8 +272,7 @@ public class PushGroupSendJob extends PushSendJob implements InjectableType {
|
||||
.withPreviews(previews)
|
||||
.build();
|
||||
|
||||
// TODO: Message ID
|
||||
return messageSender.sendMessage(0, addresses, unidentifiedAccess, groupMessage);
|
||||
return messageSender.sendMessage(messageId, addresses, unidentifiedAccess, groupMessage);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,8 @@ class LokiAPIDatabase(context: Context, helper: SQLCipherOpenHelper) : Database(
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user