2497 Commits

Author SHA1 Message Date
Sale Djenic
d830624d85 fix(@desktop/wallet): updated ui for removed wallet accounts which are still on a keycard 2023-05-09 12:05:49 +02:00
Sale Djenic
5122815df8 feat(@desktop/wallet): removing wallet account without an authentication
Closes: #10569
2023-05-09 12:05:49 +02:00
Khushboo Mehta
399eb75eb0 fix(@desktop/wallet): Add back code missing after a merge conflict with another PR 2023-05-09 10:46:52 +02:00
Patryk Osmaczko
190e903921 fix(communities): ensure featured state is not vanished on update 2023-05-08 15:01:51 +02:00
Stefan
528bb53b77 fix(Wallet) move deletion of pending transactions in nim
Bump status-go HEAD that removes deletion of pending multi-transactions
in status-go

Previous implementation was relying on the fact that all pending
transactions are also multi-transactions, which it seems not to be
the case (e.g. ens, airdrop collectible)

Also tried to extend the deletion of multi-transactions to status go
but it was causing crashes for minted/dropped tokens.

Updates #10474
2023-05-08 11:58:50 +02:00
Anthony Laibe
39b9b5ee91 feat(@wallet): add wallet filter 2023-05-06 17:40:28 +02:00
Michal Iskierko
216a1d1e2b fix(@desktop/communities): Deleting index when updating owners model and minor fixes
Issue #10254
2023-05-05 14:05:31 -04:00
Michal Iskierko
2087616b82 feat(@desktop/communities): Adding token owners model
- replace qml owners model with Nim one
- get token owners from wallet service
- keeping owners cache in community_tokens/service and refresh every 10 minutes

Issue #10254
2023-05-05 14:05:31 -04:00
Patryk Osmaczko
cc191ae0e4 feat(communities): propagate featured flag
closes: #10565
2023-05-05 19:57:39 +02:00
mprakhov
60bd0d2a6c feat(@desktop/communities): Automaticaly encrypt closed communitites 2023-05-05 19:04:29 +02:00
Alex Jbanca
a674ec57a8 fix(blockChat): Disable chat input when minimal conditions are not met 2023-05-05 19:44:39 +03:00
Jonathan Rainville
b9a2e62602 fix(message/service): fix msg not appearing in new chat because of race
Fixes #10340

Fixes a race condition when receiving a message in a channel that doesn't exist yet (for example in a delete 1-1 chat).
What happens is that the status-go signal contains both the message and the chat. Both are handled by different services, so there was a race between the two of them. If the chat service handled the chat first, then the message was added correctly, but in the case of the message service handling it first, it would try to add the message to a chat that doesn't exist yet, so it wouldn't work.

I also cleaned the ChatUpdateArgs by removing the messages arg that was not used anywhere and also was a bit counter-intuitive. Why did a Chat arg have messages?
2023-05-05 11:09:32 -04:00
Khushboo Mehta
6779e15b28 chore(@desktop/wallet): Add logic to handle the selected account for the send and receive modal to nim 2023-05-04 21:07:49 +02:00
Patryk Osmaczko
a7050fed20 chore(core): use OrderedTable for events
closes: #10549
2023-05-04 16:39:54 +02:00
Pascal Precht
90acfa0457 fix(permissions): ensure permissions model is rebuilt when permission
was deleted

This is needed because there's cases where the deletion of a permission
might cause the current user to no longer be eligible to join
a community.

Community has the follwoing permissions:
- own 2 ETH and 1 FOO_NFT or
- own 1 FOO_NFT

User owns: 1 FOO_NFT

^ The above would make the user eligible to request access to join.

Now if the community removes the second permission, the user now no
longer fulfills the requirements so we need to ensure the UI
permits the user to request access.

Rebuilding the permissions model (including its token criteria) sets the
necessary flags in the UI automatically.
2023-05-04 11:23:56 +02:00
Sale Djenic
dbef72be01 fix(@desktop/wallet): issues migrating a keypair if the profile keypair is already migrated to a keycard fixed
Closes: #10527
2023-05-04 11:13:44 +02:00
Michal Iskierko
a73ea4604e fix(@desktop/communities): Fix double toast message
Fix #10486
2023-05-04 10:28:43 +02:00
Pascal Precht
202a789c67 fix: ensure notification settings are cached from RPC
There are a bunch of notification related settings that cause RPC
calls when read from the UI in QML/Qt.

This is bad because whenever the view tries to read a notification
setting it causes an RPC call and then rerenders the view. This happens
pretty much every time a new signal arrives in the client.

To account for that we now fetch all notification settings once and mark
the service as initialized so it know when to simply return cached
values. The cache is updated when the notification settings change.

Fixes #10493
2023-05-04 09:32:44 +02:00
Igor Sirotin
f656088112
fix: Fixed community channel emoji not updated (#10534) 2023-05-03 20:07:37 +03:00
Khushboo Mehta
2401bb52bb feat(@desktop/wallet): New floating header as a drop down list
fixes #10392
2023-05-03 18:52:19 +02:00
Anthony Laibe
f58bfb97eb fix(@wallet): send a token without balance
fixes #10509
2023-05-03 13:58:58 +02:00
Igor Sirotin
ac6cebed9f Added toContentType function 2023-05-02 17:00:54 -04:00
Igor Sirotin
98d8a70572 fix: Added SystemMessagePinnedMessage contentType 2023-05-02 17:00:54 -04:00
Jonathan Rainville
6997e05586 fix(chats): fix unread counters in many instances
Fixes #10076

Reverts the refactor that makes getChannelGroups (ie getChats) not return chats (now it does return all chats too).
That way, we actually have the right mentions and unread count when receiving new messages

Also fixes an issue where mentions and unread count would get reset to 0 when getting a community update, because the signal doesn't have enough info
2023-05-02 14:33:14 -04:00
MishkaRogachev
206800bd5b fix(Contacts): Use contactRequestState enum for determinating correct contact state 2023-05-02 13:56:36 -04:00
MishkaRogachev
8ff42d0868 fix(Contacts): Resolve edge cases while addind/removing a contact 2023-05-02 13:56:36 -04:00
MishkaRogachev
e160e70121 fix(Contacts): Remove lagecy removeContactRequestRejection
Close #9935
2023-05-02 13:56:36 -04:00
Igor Sirotin
3ff97c9137
fix(Onboarding): Image is visible after first onboard. Other minor fixes (#10489) 2023-05-02 16:37:31 +03:00
Igor Sirotin
7dfd13ca77
fix(ens): Various ENS-related UI fixes (#10492) 2023-05-01 23:32:36 +03:00
Igor Sirotin
abf58b008f
fix(Pairing): Added installation info to pairing results (#10418) 2023-04-29 13:33:08 +03:00
Alexandra Betouni
5615a534ea (settings): removed community permissions,tokens,airdrop and discord options
Also:
test(suite_communities): Fixed community related tests

- A new intermediate popup is now displayed when user clicks on `Create New Community` button from `Community Portal`.
- Reformulated `tst_communityPermissions` since now it is a default option without the need of activating it from experimental feature's section.

Closes #10115
2023-04-28 16:52:41 +03:00
Jonathan Rainville
17e5aa20c7 fix(message_model): mentions not being removed when deleted or edited
Fixes #10335
2023-04-27 11:27:04 -04:00
Mikhail Rogachev
591d466029
fix(ActivityCenter): Workaround for nil message (#10460)
* fix(ActivityCenter): Workaround for nil message

Close #10455

* Update src/app/modules/main/activity_center/model.nim

Co-authored-by: saledjenic <86303051+saledjenic@users.noreply.github.com>

---------

Co-authored-by: saledjenic <86303051+saledjenic@users.noreply.github.com>
2023-04-27 19:19:17 +04:00
Lukáš Tinkl
c548a96a2a fix(Settings/LanguageView): do not change language on the fly
disable retranslation, display a confirmation dialog and apply the
language change after app restart

rationale: the way the retranslation works internally is that it force
reevaluation of _all_ QML bindings which:
- might lead to crashes (immediately or later)
- lots of warnings printed to console, some bindings can get broken as a result
- not all UI is correctly retranslated on the fly (we have lots of places
where we assign the text imperatively via JS code), so these wouldn't
appear translated before app restart anyway

Fixes #7823
2023-04-27 16:12:33 +02:00
Sale Djenic
69bf8c0e53 feat(@desktop/wallet-sync): accounts syncing part 1 2023-04-27 16:06:01 +02:00
Sale Djenic
1a919f586f fix(@desktop/wallet): issues with deleting wallet accounts fixed
In case an account being deleted is migrated to a Keycard keystore file it was not removed from
`keycards_accounts` table and in case it was the last account for that keypair derived from keystore
file was not removed as well as other keycards containing the same keypair. That's all sorted out.
2023-04-27 16:06:01 +02:00
Sale Djenic
61bd370b20 fix(@desktop/onboarding): ignore applying fetched waku data if user didn’t follow recover account onboarding path 2023-04-27 16:06:01 +02:00
Sale Djenic
87a4300e46 feat(@desktop/keycard): keycardUid pram added to user authenticated signal 2023-04-27 16:06:01 +02:00
Sale Djenic
0a04e1a67c fix(@desktop/keycard): cleaning last received data from the keycard service after ui flow is done 2023-04-27 16:06:01 +02:00
Sale Djenic
6ca9da5e84 chore(@desktop/general): old unused keycard signal, coming from status-go, removed 2023-04-27 16:06:01 +02:00
Igor Sirotin
6fe82ef133
fix: Fix and rework "start chat" text field input (#10450) 2023-04-27 17:03:49 +03:00
Sale Djenic
20102ebe3b chore(@desktop/wallet): wallet improvements 2023-04-27 15:41:03 +02:00
Jonathan Rainville
3115b9d19e fix(main/module): don't signal a section switch if it's the same section
Fixes #10428

The issue above happened when you double click on a chat section. It causes the fetch to happen twice, which is wasteful, but also causes the model to get reset while it's being processed, thus creating the crash.

The fix here is to not signal that we are changing section if we are trying to switch to the section which is already active (makes sense ofc)
2023-04-27 09:22:55 -04:00
Anthony Laibe
542e5fdb6c feat(@wallet): remove usage of wallet section current 2023-04-27 11:58:27 +02:00
Jonathan Rainville
c44e46a6a5 chore(warnings): clean up some Nim warnings 2023-04-26 10:36:58 -04:00
Boris Melnik
22ee49c551 feat(edit-message): Edit image messages
Fixes: #10072
2023-04-26 14:47:03 +03:00
Anthony Laibe
e6f88758dc feat(@wallet): wallet accounts module dedup
Second part of having profile section accounts
2023-04-25 14:56:20 +02:00
MishkaRogachev
eb5423db9c fix(Contacts): Use only retractContactRequest for removing contacts 2023-04-25 16:16:32 +04:00
MishkaRogachev
2160b53e33 fix(ActivityCenter): Use ContactRequestId for accpeting and declining CRs from AC
Close #10127
2023-04-25 16:16:32 +04:00
MishkaRogachev
0ae1881564 fix(ActivityCenter): Fix contact request notifications
Close #9788
2023-04-25 16:16:32 +04:00