879 Commits

Author SHA1 Message Date
Boris Melnik
5c7dc4c330 feat(messaging): Skip deleted and deletedForMe messages
Fixes: #8369
2022-12-03 21:06:58 +03:00
Jonathan Rainville
2276706fd8 fix(network_constants): fix torrent port clash by adding PORT_SHIFT
Fixes #8553

The torrent port was clashing with the release app since both of them have it on by default now. That was causing the messenger to fail on start.
This new PORT_SHIFT env var can be used to shift the port of the torrent service and wakuV2. No more need to use WAKUV2_PORT.
we can also add more ports that need shifting.
This enables opening multiple instances of the app very easily. Just increase PORT_SHIFT by one
2022-12-02 11:47:58 -05:00
Sale Djenic
49da859947 feat(@desktop/keycard): create a backup copy of a Keycard
Fixes: #7035
2022-12-02 17:26:06 +01:00
Richard Ramos
7261c78650 fix: display an error if StartMessenger fails 2022-12-02 11:07:40 -04:00
Anthony Laibe
1e086de456 feat(@wallet): move timer to status-go 2022-12-02 11:28:47 +01:00
Anthony Laibe
0d217c0db0 feat: add wallet token integration 2022-12-02 10:17:47 +01:00
Khushboo Mehta
13ab93297e fix(@desktop/wallet): Fix routing lines in SendModal Advanced view
fixes #8515
2022-12-01 21:20:15 +01:00
Pascal Precht
d5db1e6356 Add banner that indicates history archive downloads are in progress
This needs: https://github.com/status-im/status-go/pull/2995
2022-12-01 18:01:27 +01:00
Jonathan Rainville
b65211ac94 feat(Settings): Enable Community Archive by default and remove toggle
Closes: #6098
Original commit by @borismelnik
2022-11-30 14:41:48 -05:00
Richard Ramos
50b4dacfef feat: use identify protocol instead of separate wakuv2 nodeconfig items 2022-11-30 11:23:41 -04:00
Jonathan Rainville
dd1caf7a48 hotfix(wallet): comment out history timer to fix app hanging on close
Fixes #8401

Threads in Nim are very bad and when the app closes, the thread doesn't close until it is done. That means that the 20 minute timer needs to finish before it can be closed.
2022-11-29 10:37:35 -05:00
Pascal Precht
213924f6e9 feat(chat): support copy & pasting images into chat input
This adds support for receiving copied images from the clipboard
and pasting it into the chat input.

After pasting, chat input will recognize the image and render a preview
similar to how it would do it when selecting images via the file dialog.

**Also important to note**:

At the time of this PR, it seems that desktop only supports sending
jpegs to status-go. I'm not sure if this was deliberately done this way
because the protocol says it supports jpg, png, webp and gif.

Because of this, pasting for example pngs will work, however
transparency will be lost (which is also most likely the cause of #8820)

This PR operates on that assumption. So while it adds support for
copy/pasting images, it does not address the lack of file type support.

Closes #3395
2022-11-29 12:31:18 +01:00
Richard Ramos
e2f157018c chore(storenode): bump status-go, and log result of each storenode requests 2022-11-28 10:07:20 -04:00
MishkaRogachev
8b9b399077 fix(Contacts): Add self id for identity verification requests
Close #8277
2022-11-28 14:14:04 +04:00
Patryk Osmaczko
8b4d527651 chore(chat/stickers): propagate stickers loading failure 2022-11-25 17:06:59 +01:00
Pascal Precht
d8bda2490a fix(communities): handle removed community chats properly
We were ignoring the `removedChats` in the messenger response and
therefore never processed deleted community chats in the client.

This commit adds `removedChats` to `handleCommunityUpdates()` and
ensures that the community channel's ID is used when emitting a signal
to the app.

This needs: https://github.com/status-im/status-go/pull/2973

Closes #8000
2022-11-25 09:21:50 +01:00
mprakhov
92da7ee9a3 fix(@desktop/test): [suite_communities / tst_communityFlows] - 'The admin changes the emoji of a channel' 2022-11-24 14:50:43 +02:00
Pascal Precht
ba4c4b3e93 fix(Settings): better error handling for toggling archive protocol
Enabling the community archive protocol could fail when another app is
using the same port that is specified as torrent client port.

This would cause the app to crash.

With these changes we:

1. No longer crash the app but output an error in the logs
2. We popup a dialog telling the user that the specified pord is in use

Closes #7328
2022-11-23 14:56:08 +01:00
Boris Melnik
f6458facfc fix(messaging): Fix processing successfuly sent messages and remove @mayfail from relevant ui test
Fixes: #7961
2022-11-22 14:19:08 -05:00
Khushboo Mehta
6c0806c2e1 (@desktop/wallet): Fix for pending tx not shown in history view
fixes #7530
2022-11-22 13:57:50 +01:00
Igor Sirotin
f022e02efe fix(Chat): Added group/channel name to notifications title 2022-11-17 13:04:06 +03:00
Stefan
d0389a6305 feat(Wallet) show balance cache for chain native token
Quick integration of fetching balance in the current chart view.

The proper implementation requires refactoring the QML views to separate
price chart, that depends only on the token and chain, from balance that
depends on token, chain and address.

Closes: #7662
2022-11-16 13:07:46 +01:00
Anthony Laibe
6e6f708d49 fix(@wallet): switch account being slow
Now when switching account all remote call are non blocking

fixes #7430
2022-11-15 14:13:33 +01:00
Sale Djenic
557703543c fix(@desktop/keycard): migrating keypair looks somehow stucked for a while before switching to Migrating key pair to Keycard state
Fixes: #8177
2022-11-15 12:12:07 +03:00
Sale Djenic
db7769b072 chore(@desktop/general): accounts service updated, inherits QtObject class 2022-11-15 12:12:07 +03:00
Sale Djenic
78fda35807 chore(@desktop/general): unused imports removed 2022-11-15 12:12:07 +03:00
Pascal Precht
d9c04bb32d fix: prevent app from crash due to missing type variants
Alright this was very painful to figure out.

Because desktop didn't know about the notification type for
`ContactVerification`, the signal processing for incoming contact
verifications would fail.

At the same time, the new message content type was missing a type
variant for content verification as well, which would cause the app to
crash at runtime for both, sender and receiver of verification requests.

Fixes #8205
2022-11-14 11:50:10 -05:00
Michal Iskierko
060072da2d fix(@desktop/chat): Fix moving channels between categories
Fix #7422
2022-11-14 16:48:27 +01:00
mprakhov
0114334763 fix(@desktop/Profile): validate social links before saving #7926 2022-11-11 15:28:52 +02:00
Jonathan Rainville
ed4ecb17bb fix(contacts): retract the contact request when removing a contact
Fixes #7791

Adds the retractContactRequest status-go api call. Calling it when removing a contact makes sure to send a signal to that other user so they can understand that we are no longer mutual contacts or don't have a request anymore
2022-11-11 13:40:30 +01:00
Boris Melnik
b10b6617cf fix(edit-message): Add content-type to edit message request
Closes: #7879
2022-11-11 14:01:16 +03:00
Pascal Precht
88670ec5d0 fix(Contacts): use ContactRequestState to filter out rejected requests
There's a bug in determining pending incoming contact requests where we
don't honor already rejected ones.

Simply checking if a contact in question `hasAddedUs` isn't enough
because that only tells us if the contact has sent us a request in the
past. It doesn't tell is whether the request was rejected already.

As a result, rejected contact requests keep popping up in the UI after
restarting the app. See #8156 for more information.

This commit introduces a `ContactRequestState` enum in Status Desktop,
similar to how it exists in status-go. Using this as `requestState`
on `ContactDto`, we can easily figure out what's the request state for
any given contact.

Notices that this only makes use of `ContactRequestState` to check for
whether a request was rejected.

We probably want to consider using this for all other states as well
(instead of relying on system tags).

Closes #8156
2022-11-11 10:10:06 +01:00
Boris Melnik
42234c7d49 feat(communities): User is able to cancel membership request
Part of: #7072
2022-11-10 23:07:22 +03:00
Richard Ramos
ae7a16f27e fix: display "Resend" for expired messages 2022-11-10 11:49:42 -04:00
Anthony Laibe
15891295e9 test(@wallet): enable mayfail test 2022-11-10 15:43:02 +01:00
Anthony Laibe
59e0ae298f test(@wallet): Update network constants 2022-11-10 15:43:02 +01:00
Pascal Precht
69677a7c1c fix(communities): add missing community image to import process
This needs https://github.com/status-im/status-go/pull/2947
2022-11-10 14:08:59 +01:00
Lukáš Tinkl
2b6164fc8d fix: ens names should not display @
Fixes #8122
2022-11-10 10:42:05 +01:00
Sale Djenic
105e1c156b fix(@desktop/keycard): ExportPublic instead of Sign flow should be used for user authentication
Fixes: #8176
2022-11-10 11:03:44 +03:00
Sale Djenic
3d163cfa33 fix(@desktop/keycard): keystore file for a keypair is not removed once that keypair is migrated to a Keycard
When we're migrating profile or any other keypair to a Keycard
corresponding locally stored keystore files are removed.

Fixes: #8067
2022-11-10 11:03:44 +03:00
Sale Djenic
3da62c9092 fix(@desktop/wallet): adding derived wallet account fixed
An issue with adding wallet account was happening only for a new user,
the reason for that was incorrectly set keystore path and keystore file couldn't
be found on the statusgo side because of that.
2022-11-10 11:03:44 +03:00
Richard Ramos
6e705eab2a fix: set TEST_PEER_ENR in wakuv2 2022-11-08 21:40:06 +03:00
Richard Ramos
9fe2236a23 fix: pinned mailserver value 2022-11-08 21:40:06 +03:00
Michal Iskierko
1f2a050695 feat(@desktop/general): Use compressed community key in deep links
Issue #8001
2022-11-08 15:18:39 +01:00
Pascal Precht
f87f952330 fix(communities): allow actual import errors to come through
This commit enures we render proper errors during an import, even if
we've reached the maximum of warning/error items to render.
2022-11-04 13:24:27 +01:00
Sale Djenic
02d3398fbc fix(@desktop/keycard): change db password for a keycard users
DB password for a Keycard user is now `publicKey` of encryption derivation.
kdf iterations for keycard users are set to 256000 so it's the same as we have
for regular users.

Fixes: #8066
2022-11-03 10:11:15 +01:00
Jonathan Rainville
8296dd443b fix(accounts-service): use WAKUV2_PORT env var for account creation too 2022-10-28 14:50:25 -04:00
Sale Djenic
2c03146309 fix(@desktop/keycard): can't create accounts if the main account was restored in using an existing keycard account
`I already use Status` -> `Login with Keycard` flow is enabled.

Fixes: #7867
2022-10-28 20:43:09 +02:00
MishkaRogachev
851dd3bc76 feat(ActivityCenter): Review fixed for community membership AС notifications 2022-10-28 00:25:10 +03:00
MishkaRogachev
9c8fee09cd feat(ActivityCenter): Community membership status handling 2022-10-28 00:25:10 +03:00