fix bug since refactor: autoFR and session request message were mixed

pull/1137/head
Audric Ackermann 5 years ago
parent 03c14859b7
commit 308e06b2cd
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -1905,12 +1905,6 @@
async function onGroupReceived(ev) {
const details = ev.groupDetails;
const { id } = details;
libloki.api.debug.logGroupSync(
'Got sync group message with group id',
id,
' details:',
details
);
libloki.api.debug.logGroupSync(
'Got sync group message with group id',

@ -740,7 +740,10 @@ OutgoingMessage.prototype = {
OutgoingMessage.buildAutoFriendRequestMessage = function buildAutoFriendRequestMessage(
pubKey
) {
const dataMessage = new textsecure.protobuf.DataMessage({});
const body =
'(If you see this message, you must be using an out-of-date client)';
const dataMessage = new textsecure.protobuf.DataMessage({ body });
const content = new textsecure.protobuf.Content({
dataMessage,
@ -765,11 +768,9 @@ OutgoingMessage.buildAutoFriendRequestMessage = function buildAutoFriendRequestM
OutgoingMessage.buildSessionRequestMessage = function buildSessionRequestMessage(
pubKey
) {
const body =
'(If you see this message, you must be using an out-of-date client)';
const flags = textsecure.protobuf.DataMessage.Flags.SESSION_REQUEST;
const dataMessage = new textsecure.protobuf.DataMessage({ body, flags });
const dataMessage = new textsecure.protobuf.DataMessage({ flags });
const content = new textsecure.protobuf.Content({
dataMessage,

Loading…
Cancel
Save