Commit Graph

2386 Commits

Author SHA1 Message Date
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
Anthony Laibe bdaf122ec7 fix(@wallet): delete selected account 2023-04-25 08:43:56 +02:00
Khushboo Mehta c94997ddec feat(@desktop/wallet): Wallet -> Send: polish Send/Bridge Modals
fixes #10344, #10321, #10320
2023-04-24 22:07:22 +02:00
Jacek Sieka e4f7269587 Nim 1.6
Upgrade Nim compiler to 1.6.

The necessary changes are related to how `for` loops now implicitly
create a `lent` type, which is Nim's way of creating a "temporary"
reference to an item inside a collection - this helps performance by
avoiding a copy of the data, but it also means that the copy that
previously was implicit in the for loop must be made explicit in the
code.
2023-04-24 12:38:35 -04:00
Jonathan Rainville db6af0554a fix(chat-model): use setData to set the chat model
Fixes #10384

The problem was that doing the sort inside the insertRows messed up the model.
I removed it and it fixed the issues. However, it created an other issue with ordering.

The problem this time is that when populating the model at the start, we do not get the chats in order, so calculating the right position to insert a chat is difficult.

Instead, I use a setData function to just put all the chats in the items list, sort it and call it done, using the resetModel function.

I also did some clean ups.
2023-04-24 11:06:17 -04:00
Boris Melnik dc1f407fd1 fix(os-notifications): Display image emoji for sticker in notification
Fixes: #10294
2023-04-24 16:34:12 +03:00
Jonathan Rainville 10b8d38844 fix(re-encryption): make sure loading screen is shown when re-encrypting
Fixes #10352

Adds a 1 second timer before re-encrypting, to make sure the loading screen is shown before it starts, since it can freeze.
2023-04-24 09:32:21 -04:00
Jonathan Rainville 0c9b568b95 refactor(chat_content): only get Message by ID when needed 2023-04-24 09:31:00 -04:00
Anthony Laibe c8d0cb36e6 feat(@wallet): sort saved addresses
fixes #9772
2023-04-22 11:06:59 +02:00
Alexandra Betouni 12520214d2 fix(StatusCommunityMenu): Added mute button
Closes #9694
2023-04-21 20:10:00 +03:00
Sale Djenic ec17309348 fix: `saveAccounts` status-go endpoint change handling 2023-04-21 17:12:10 +02:00
Lukáš Tinkl 038ab08765 fix: do not display ENS name when not ENS verified
- expose "isEnsVerified" as model role
- fix returning "ensName" when the user is not ensVerified
- react to nickname updates correctly
- fix sorting in the user/member list view
2023-04-21 00:24:32 +02:00