diff --git a/js/background.js b/js/background.js index 8e85f8269..2d4d78499 100644 --- a/js/background.js +++ b/js/background.js @@ -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', diff --git a/libtextsecure/outgoing_message.js b/libtextsecure/outgoing_message.js index 95b2925ca..7d4cb40c0 100644 --- a/libtextsecure/outgoing_message.js +++ b/libtextsecure/outgoing_message.js @@ -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,