Commit Graph

1930 Commits

Author SHA1 Message Date
Sale Djenic db7769b072 chore(@desktop/general): accounts service updated, inherits `QtObject` class 2022-11-15 12:12:07 +03:00
Sale Djenic 662a11a57b chore(@desktop/keycard): tertiary action for shared keycard popup module renamed to cancel action
Since tertiary action for the keycard popup module is always used to cancel/invalidate
the current flow, it's renamed now to cancel action (avoids confusion this way and it
seems more intuitive. It doesn't set any state. It should be defined if it's possible to cancel
the flow from the current state.
2022-11-15 12:12:07 +03:00
Sale Djenic 21eeefa42e chore(@desktop/keycard): state commands improvement
Previously we had only a single command which may be triggered for any state and
it was triggered before the state was set as an active state. Now we are able to set
custom command which may be triggered either before or after the state is set.

Changes:
- old `executeBackCommand` is now `executePreBackStateCommand`
- old `executePrimaryCommand` is now `executePrePrimaryStateCommand`
- old `executeSecondaryCommand` is now `executePreSecondaryStateCommand`
- old `executeTertiaryCommand` is now `executePreTertiaryStateCommand`
- added `executePostBackStateCommand` command
- added `executePostPrimaryStateCommand` command
- added `executePostSecondaryStateCommand` command
- added `executePostTertiaryStateCommand` command
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 eaf5095490 fix(@desktop/onboarding): Clear tempPassword before sending login error
Fix #8082
2022-11-14 11:20:18 -05:00
Michal Iskierko 060072da2d fix(@desktop/chat): Fix moving channels between categories
Fix #7422
2022-11-14 16:48:27 +01:00
Boris Melnik 13acb5730d fix(profile-settings): Add usage dirty values for preview and load image profile on save
Closes: #7920 #7917
2022-11-14 14:59:46 +03: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
Patryk Osmaczko 263b1c01c6 fix(chat): use clock for messages ordering
fixes: #8153
2022-11-11 14:02:11 +03: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 76968df721 chore(waku2): add extra logging 2022-11-10 15:18:05 -04:00
Richard Ramos ae7a16f27e fix: display "Resend" for expired messages 2022-11-10 11:49:42 -04:00
Pascal Precht 8d90204e0a refactor(communities): allow removing items from import file list
There was a requested design change where no longer wanted to have
checkboxes to decide which files will be included for a discord import,
but rather have an "X" button that enables users to remove items.

This commit implements this refactor.

In addition, it ensures that the already loaded discord categories and
channels that have been extracted from validation, are kept in sync as
well.

Meaning, if a user removes a file from the file list, the corresponding
channel will be removed as well.

If there's not channel in a given category, the category will be removed
as well.

Closes #8125 #8126
2022-11-10 15:45:25 +01: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
Richard Ramos bdded864f2 fix: enable lightclient mode 2022-11-10 09:50:15 -04: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 2ea83c02b0 fix(@desktop/general): crash handling unknown exceptions fixed
If any but the `RpcException` was thrown while handling remote procedures responses
app crash happened. Fixed in this by accepting more general exception objects.
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
Pascal Precht e8437d3b0c fix(contacts): fix `getVerificationRequestFrom` API
The underlying API was mistakenly removed in status-go, then
reintroduced, but as `getLatestVerficiationRequestFrom`.

This commit fixes the RPC call.

Needs https://github.com/status-im/status-go/pull/2934
2022-10-29 13:52:40 +02: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
Sale Djenic c8c51a8621 chore(@desktop/accounts): unused code removed 2022-10-28 20:43:09 +02:00
Igor Sirotin 82bc21b4ff fix: Fixed group and channel mention notifications 2022-10-28 21:21:49 +03:00
Pascal Precht b9a9f2a20f feat(Message): fallback to import message content if necessary
Messages are parsed to transform markdown to something that can be
rendered in a formatted way.

When this happens, the parsed text is applied to a message's `text`
property inside desktop.

There was no formatted message support for imported discord messages,
so we were relying purely on `discordMessage.content`.

However, now formatting support is pending in status-go here: https://github.com/status-im/status-go/pull/2933

This means, once this lands, we can simply rely on `messsageItem.text`.

I'm adding this guard here such that this will continue to work without
the feature in status-go, but once the feature in status-go lands,
desktop will automatically adapt.

Closes #8086
2022-10-28 17:23:49 +02:00
MishkaRogachev 6a72773ab6 feat(ActivityCenter): Refactor AC Store and fix notifications counting
Close #7654
2022-10-28 12:29:40 +03:00
Boris Melnik 6de3466cb2 feat(Communities): Add ephemerial notification when request to join was accepted
Part of: #7072
2022-10-28 11:01:59 +03:00
MishkaRogachev 851dd3bc76 feat(ActivityCenter): Review fixed for community membership AС notifications 2022-10-28 00:25:10 +03:00
MishkaRogachev 5d8e3ac252 feat(ActivityCenter): Fix handling membership requests from AC 2022-10-28 00:25:10 +03:00
MishkaRogachev 9c8fee09cd feat(ActivityCenter): Community membership status handling 2022-10-28 00:25:10 +03:00
MishkaRogachev d4e4e66fc6 feat(ActivityCenter): Community membership notifications
Close #7277
2022-10-28 00:25:10 +03:00
Lukáš Tinkl f122607ada fix: consecutive discord messages should be grouped like status messages
- fill the senderId just like other messages
- add some checks in Utils since the "publicKey" (ID) coming Discord
isn't in the format we'd normally expect

Closes #6678
2022-10-27 22:44:00 +02:00
Anthony Laibe 34d7d4354b test: fail balance test 2022-10-27 17:38:28 +02:00
Khushboo Mehta aec7a30d03 feat(@desktop/wallet): Updated UI for bridge and multi routing support
fixes #7334
2022-10-26 18:48:30 +02:00
Jonathan Rainville 8055662621 fix(community): make sure to add the chat when inviting to a community 2022-10-26 12:32:52 -04:00
Michal Iskierko 6d2a2e6e03 fix(@desktop/general): Fix clicking deep links in chat
Clicking any deep-link in chat: /u, /c, /cc does not open browser but executes instantly

Fix: #6302
2022-10-25 08:26:16 -04:00
Richard Ramos 3b3b737956 feat: encrypt communities 2022-10-25 08:26:10 -04:00
Anthony Laibe 76aedc3615 feat(@wallet): display ens name with saved addressess 2022-10-24 12:39:34 +02:00