Out of sync message sync (#1923)

* do not update sent_at for synced messages

* reply to message context menu only visible if msg sent

* Allow scrolling in mentioning people in composition box

Relates #1849
pull/1930/head
Audric Ackermann 4 years ago committed by GitHub
parent e9dfa0704f
commit 2fdafb8fba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -197,6 +197,11 @@
min-height: $composition-container-height;
padding: $session-margin-md 0;
ul {
max-height: 70vh;
overflow: auto;
}
textarea {
font-family: $session-font-default;
min-height: $composition-container-height / 3;

@ -318,7 +318,7 @@ export async function TEST_testGuardNode(snode: Data.Snode) {
response = await insecureNodeFetch(url, fetchOptions);
} catch (e) {
if (e.type === 'request-timeout') {
window?.log?.warn('test timeout for node,', snode);
window?.log?.warn('test timeout for node,', ed25519Str(snode.pubkey_ed25519));
}
if (e.code === 'ENETUNREACH') {
window?.log?.warn('no network on node,', snode);
@ -392,8 +392,7 @@ export async function selectGuardNodes(): Promise<Array<Data.Snode>> {
attempts++;
}
guardNodes = selectedGuardNodes;
guardNodes = selectedGuardNodes.slice(0, desiredGuardCount);
if (guardNodes.length < desiredGuardCount) {
window?.log?.error(`Cound't get enough guard nodes, only have: ${guardNodes.length}`);
throw new Error(`Cound't get enough guard nodes, only have: ${guardNodes.length}`);

Loading…
Cancel
Save