From 7d6f8930fd8b4b4ef1c6943e57fcfd7ae564b224 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Mon, 20 Sep 2021 06:03:56 +0200 Subject: [PATCH] Session 1.7.1 (#1908) (#1931) * Keep line breaks when message has some new lines Relates #1758 and #1898 and #1901 * Fix path building (#1903) * Keep line breaks when message has some new lines Relates #1758 and #1898 and #1901 * fix link preview cropped when received * make sure we fetch from seed if we end up with not enough snodes * try to download recent previews if we just trusted a user * throw if we need to rebuild path while fetching snode list from snode * fixup no refecthing of snode list while we are fetching them already * added test for fetch from db or seed * fetch snode list from snode every hour also make sure the path building does not try to get more snodes. It just throws * do not drop a path if an opengroup room is down and we get errors back * do not throw an error if the snode in error in not in any path * fix tests * bump to v1.7.11 --- ts/components/conversation/message/MessageContent.tsx | 9 +++++---- ts/session/snode_api/SNodeAPI.ts | 1 - 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ts/components/conversation/message/MessageContent.tsx b/ts/components/conversation/message/MessageContent.tsx index d17fb5069..cbf382506 100644 --- a/ts/components/conversation/message/MessageContent.tsx +++ b/ts/components/conversation/message/MessageContent.tsx @@ -190,13 +190,14 @@ export const MessageContent = (props: Props) => { )} {hasContentAfterAttachmentAndQuote ? ( - + <> {!isDeleted && ( )} - - - + + + + ) : null} diff --git a/ts/session/snode_api/SNodeAPI.ts b/ts/session/snode_api/SNodeAPI.ts index 5f652585e..5feddefc1 100644 --- a/ts/session/snode_api/SNodeAPI.ts +++ b/ts/session/snode_api/SNodeAPI.ts @@ -417,7 +417,6 @@ export async function storeOnNode( try { // no retry here. If an issue is with the path this is handled in lokiOnionFetch // if there is an issue with the targetNode, we still send a few times this request to a few snodes in // already so it's handled - const result = await snodeRpc({ method: 'store', params,