Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Quiet is trying to connect... and Sending... on messages when not connected to other peers #1706 #2367

Open
wants to merge 73 commits into
base: develop
Choose a base branch
from

Conversation

ikoenigsknecht
Copy link
Collaborator

@ikoenigsknecht ikoenigsknecht commented Mar 15, 2024

  • Show a spinner with the message Quiet is trying to connect... in message pane when no other peers are connected and community has peers
  • Show Sending... with animated ellipsis on messages when no other peers are connected and community has peers
  • Update opacity of messages (text, math, file and image), usernames, and avatars in message pane when no other peers are connected and community has peers
  • Adds selectors/reducers for getting peer data, final peer disconnect time and last time the user connected to the community
  • Adds AnimatedEllipsis class for showing text followed by an animated ellipsis
  • Adds tests
  • Adds reliability features to E2E tests
  • Allows logs from desktop renderer and state-manager to appear in console with other logs (e.g. backend)

https://www.figma.com/file/frxdNd42wV8kgXoiBExoqR/User-and-network-status?type=design&node-id=716-24467&mode=design&t=HRARHrzbOeNjpl8o-0

Pull Request Checklist

  • I have linked this PR to a related GitHub issue.
  • I have added a description of the change (and Github issue number, if any) to the root CHANGELOG.md.

(Optional) Mobile checklist

Please ensure you completed the following checks if you did any changes to the mobile package:

  • I have run e2e tests for mobile
  • I have updated base screenshots for visual regression tests

@ikoenigsknecht
Copy link
Collaborator Author

Implements #1706

ikoenigsknecht and others added 23 commits April 4, 2024 13:03
 - @quiet/desktop@2.2.0-alpha.0
 - @quiet/mobile@2.2.0-alpha.0
When using backend data directories like `Quietdev`, `Quietdev1`, `Quietdev2',
restarting the process using `Quietdev` can result in that process killing the
other backend processes due to the grep command used for finding hanging
processes. Example:

```
user (Quietdev1):
desktop:main:main Forked backend, PID: 214543

owner (Quietdev):
Found 1 hanging backend process(es) with pid(s) 214543. Killing...
```
iOS appears to not be syncing correctly after resuming from suspend.
It looks like this is due to the libp2p auto-dialler getting stuck
connecting to the Tor HTTP tunnel port which is replaced after
suspend/resume. This commit enables the WebsocketOverTor transport to
use the `dialTimeout` correctly. But still this means the current
dialer waits for `dialTimeout` to try another peer, and we currently
have `dialTimeout` set to 2 minutes. Ideally, we can find a better
approach for closing any sockets when suspending the app or detecting
when we are trying to connect to a port that nothing is listening on,
if that's possible.
@ikoenigsknecht ikoenigsknecht changed the base branch from 2.2.0 to develop April 12, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants