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
pull/1927/head
Audric Ackermann 4 years ago committed by GitHub
parent efebd8ba24
commit 7d6f8930fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -190,13 +190,14 @@ export const MessageContent = (props: Props) => {
</> </>
)} )}
{hasContentAfterAttachmentAndQuote ? ( {hasContentAfterAttachmentAndQuote ? (
<Flex padding="7px" container={true} flexDirection="column"> <>
{!isDeleted && ( {!isDeleted && (
<MessagePreview messageId={props.messageId} handleImageError={handleImageError} /> <MessagePreview messageId={props.messageId} handleImageError={handleImageError} />
)} )}
<Flex padding="7px" container={true} flexDirection="column">
<MessageText messageId={props.messageId} /> <MessageText messageId={props.messageId} />
</Flex> </Flex>
</>
) : null} ) : null}
</IsMessageVisibleContext.Provider> </IsMessageVisibleContext.Provider>
</InView> </InView>

@ -417,7 +417,6 @@ export async function storeOnNode(
try { try {
// no retry here. If an issue is with the path this is handled in lokiOnionFetch // 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 // 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({ const result = await snodeRpc({
method: 'store', method: 'store',
params, params,

Loading…
Cancel
Save