Commit Graph

3208 Commits

Author SHA1 Message Date
Andrey Bocharnikov 5c349d1938 chore: Use optimized endpoint to get communities with images
fixes #15340
2024-06-28 23:13:09 +07:00
Jonathan Rainville 7a7dbb631c
perf: use community members for unpermissioned channels (#15156)
Fixes #15149
2024-06-27 10:56:49 -04:00
Jonathan Rainville 775df8097c
fix(links): fix sending links plus images (#15352)
Fixes #15290
2024-06-27 09:42:45 -04:00
Andrey Bocharnikov 174114538e fix(community): community tokens disappear when minting of a new token is finished
fixes #15076
2024-06-26 19:20:27 +07:00
Andrey Bocharnikov ad7053f809 fix(communityUI): Channel name is not changed in the top nav bar when editing a channel
fixes #15146
2024-06-26 19:20:12 +07:00
Igor Sirotin c8bc68b96c
refactor: use create/restore/login status-go endpoitns for keycard (#15090)
* chore: remove unused storeDefaultKeyPair

* chore: added CreateAccount keycard parameters

* chore: remove unused newKeycard argument

* chore: create keycard account with ImportAccountAndLogin endpoint

* fix: remove keycardWhisperPrivateKey CreateAccount parameter

* feat: use LoginAccount endpoint for keycard

* fix: use CreateAccount RootDataDir instead of BackupDisabledDataDir

* fix: use loginAccountKeycard instead of loginAccountKeycardUsingSeedPhrase

* fix_: use `login` instead of `loginLocalPairingAccount` an `loginAccountKeycard`

* chore: refactor scheduling reencrpytion

* fix: FirstRunOldUserKeycardImport

* chore: improve code readability

* feat: use RestoreAccountAndLogin endpoint for keycard

* update status-go
2024-06-26 14:12:39 +02:00
Stefan cb368ea5fb feat(dapps) fix missing list of dapps in wallet connect
Updates: #15126
2024-06-26 12:00:54 +02:00
Stefan 92d0420449 feat(dApps) implement sign transaction for wallet connect
Uses status-go's endpoints:
- `wallet_buildTransactions` to format the transaction
- `wallet_signMessage` to sign the transaction
- `wallet_buildRawTransaction` to format the final signed transaction

Updates #15126
2024-06-26 12:00:54 +02:00
Alex Jbanca 901362dfc1 feat(networkSelector): Refatoring of NetworkSelector to remove backend dependency 2024-06-21 16:18:51 +03:00
Jonathan Rainville 8ca51c34cc
refactor(messages): make message sending async (#15237)
Fixes #12411

Makes message sending async and adds a placeholder "Sending.." message
2024-06-20 18:46:12 -04:00
Alex Jbanca 8b4cbc59a8 refactor: Refactoring of AccountSelector dropdown
The new account selector expects a generic account model. It will display all the account data if provided, including preferred chains, balance or asset balance. Otherwise it will display only the available data.
The account selector can receive an initial selection based on account address and will provide the current selected address and the current selected model item.

- Unify the account selector between communities and wallet
- Update the account selector to work with addresses instead of model indexes
- Adapt all components using the account selector or the account selection
- Move/reuse qml components involved in the account selector UI
- Remove nim logic used to handle index based account selection.
- Adding storybook page
2024-06-20 11:24:35 +03:00
Dario Gabriel Lipicar 15452aa79c feat(wallet): integrate swap slippage percentage parameter
Closes #15096
2024-06-19 09:58:36 -03:00
Andrey Bocharnikov f118af8403 fix(community): update hidden channels visibility when joining the community
fixes #14719
2024-06-19 19:57:54 +07:00
Igor Sirotin 430f2501d4
fix: bandwidth usage (#15231)
* feat: added bandwidthStatsEnabled login flag

* update status-go
2024-06-18 15:19:10 +01:00
Igor Sirotin eb9c629bbf
fix: removeTrustStatus response processing (#15206) 2024-06-18 11:08:30 +01:00
Igor Sirotin 067f406572
feat: limit message link previews count (#15214) 2024-06-18 11:08:14 +01:00
Jacek Sieka b51eec7099
chore(nim): task simplification (#13956)
This PR slightly simplifies the way tasks are passed between threads,
removing some unnecessary boilerplate while improving type safety by
removing casts.

This approach works because `nimcall` turns a `proc` into a simple
pointer which just like `cstring` is safe to pass between threads.

Further simplification is possible, but left for a future PR.
2024-06-18 10:10:01 +02:00
Stefan 758dbc55e5 feat(dapps) implement signing of messages
Implement infrastructure and integration with status-go to support
general session requests

Supported methods:
- personal_sign
- eth_signTypedData_v4

depends on status-go change that exposes the signing methods

Also

- support hex or utf8 encoding for personal_sign
- format the typed data for display in the modal

Tests are disabled for now, as they are crashing on CI

Close: #14927
2024-06-17 15:06:26 +02:00
Alex Jbanca ccc2dfc547 refactor: Adding a users_model holding all contacts
Adding a new users_model instance holding all contacts. The users_model is adapted to contain all the user details.
This model is temporary until the full refactoring is done.
2024-06-14 17:17:18 +03:00
Stefan 4d080e12aa feat(dapps) authenticate user for session request
Trigger authentication with identity of the request
Track the authentication using the identity and allow only once
Add tests for the new functionality
Minor improvements around the code

Closes #15018
2024-06-12 16:52:12 +02:00
Patryk Osmaczko 3b2a7b8f08 fix(communities): fetching owners of erc20
fixes: #14908
2024-06-12 16:04:53 +02:00
Dario Gabriel Lipicar 75d755ea0f feat(@desktop/wallet): initial integration for swap proposal, approve tx and swap tx
Closes #14824
2024-06-11 14:15:26 +02:00
Anthony 51770b063d fix(wallet): display collectibles even if account is not in total
balance

fixes #15128
2024-06-11 11:31:09 +02:00
Dario Gabriel Lipicar 10fbdbfc2c fix(wallet): properly marshall multiTxCommand type
Part of #15098
2024-06-10 12:35:04 -03:00
Andrey Bocharnikov 4145be8f76 fix(settings): fix saving settings
* fix saveNewWakuNode in the settings
* fix setNimbusProxyConfigEnabled in the settings
* fix setLightMode in the settings
2024-06-10 22:26:06 +07:00
Andrey Bocharnikov 7e166ca9f2 fix(message/service): unify error parsing 2024-06-10 22:25:24 +07:00
Sale Djenic eaf5f0263f fix: onboarding keycard issues fixed
- no emojihash and identicon ring displayed in for keycard onboarding flow
- can't restore account (windows and linux), issue #15101
- can't create new account with keycard (linux, windows), issue #15055
- illegal storage access issue when hitting Start using status button (which actually was a crash after pressing the button), issue #15035
2024-06-10 12:30:30 +02:00
Godfrain Jacques ca1ec5281c
fix(@desktop/permission): fix permissions lock icon visibility (#15049)
Fix permissions lock icon visibility on channel permissions,
fixes #14746
2024-06-07 08:04:23 -07:00
Michal Iskierko a7b9a62745 fix(@desktop/communities): Lazy loading token holders
Token holders are not fetched when application starts.
They are fetched only when token details screen is opened.

Fix #14974
2024-06-06 10:18:16 +02:00
Jonathan Rainville 146a6e8501 fix(search): fix searching for hidden chats
Fixes #14961
2024-06-05 13:36:42 -04:00
Godfrain Jacques 9d5c5c64cc
fix(@desktop/group chat): fix empty member list in group chat (#15052)
fixes #14907
2024-06-05 09:39:14 -07:00
Andrey Bocharnikov 3345a9cc48 fix(HistoryNodes): Fix mailserver management UI controllers
Fixes #14982
2024-06-04 15:37:06 -04:00
Jonathan Rainville c4928cfe40 fix: set joined to all members of the comm since they are in the list (#15016)
Fixes #14994

If you are part of the community member list, it means you are joined. It made no sense to add conditions to it.
2024-06-04 14:43:58 -04:00
Andrey Bocharnikov a93455c2d0 fix(chat): Display mention tag even if there is no mention
fixes #14928
2024-06-04 22:51:52 +07:00
Khushboo Mehta aa03edf17c feat(@desktop/wallet): Integrate recurring onramp providers in Recurrent tab
fixes #14820
2024-06-04 11:09:59 +02:00
Jonathan Rainville b2fb287beb
refactor: rely on canPost and canView instead of checking permissions (#14993)
* refactor: rely on canPost and canView instead of checking permissions

Fixes #14983

* chore: remove all Light permission checks that are no longer needed
2024-06-03 15:06:34 -04:00
Michal Iskierko d0b82bc8dc fix(@desktop/communities): Update UI when receiving information about token actions made by other owner/tokenmaster
Fix #13371
2024-06-03 16:10:35 +02:00
Mikhail Rogachev 6c053dd251
hotfix: use canPost and canView from chat in case of a new channel (#15003) 2024-05-31 18:44:21 +02:00
Mikhail Rogachev f62b6eb348
fix(communities): Correct handling 'hide channel from certain members' (#14977)
Close #14915
2024-05-31 12:28:09 +02:00
Jonathan Rainville 2830f01932 Fix missing reaction and edit buttons on permissioned channels (#14933)
* fix poster actions (edit, delete)

* use canPost instead

* fix chat getting updated without community
2024-05-30 10:04:36 -04:00
Stefan 35b81eadf6 feat(dapps): show dapps list in wallet connect popup
Things done here:

Integrate basic functionality for wallet connect in status-go
Update the list of dapps from the SDK
Retrieve the persistence dapps list from the backend as a fallback
if there is no connection and SDK can't be initialized
Provide a basic simple view of dapps in the wallet connect popup

Closes: #14557
2024-05-30 10:57:42 +02:00
Stefan 07bc6c49df feat(dapps) attempt to fix the wallet connect abstraction
Spent too much time figuring out the puzzle of
service->module->view->QML just to call a
status-go function.

Keeping this attempt for later while moving to a
simplified Controller/Provider approach. I will
come back to the abstraction when we add tests
to use it.

Updates: #14615
2024-05-30 10:57:42 +02:00
Michal Iskierko 6d310c33cd fix(@desktop/communities): add hidden button to refresh (retrack transaction) community tokens
Issue #14699
2024-05-28 13:52:42 +02:00
Anton Iakimov d0865e2f44
chore: switch wakuv2 fleet to waku (#14033)
* chore: switch wakuv2 fleet to waku

See status-im/infra-nim-waku#91 for details

Mostly done automatically. Some parts manually.

* chode: drop eth.staging fleet

Signed-off-by: Jakub Sokołowski <jakub@status.im>

---------

Signed-off-by: Jakub Sokołowski <jakub@status.im>
Co-authored-by: Jakub Sokołowski <jakub@status.im>
2024-05-28 08:48:04 +02:00
Jonathan Rainville 9523e6b764 fix(categories): fix category unread status
Part of #14886

The problem was that the ChatDto doesn't have a categoryID, so we need to use the CommunityChat.

I think before, the channel groups had the full chat info, but not we can't rely on that.

The CommunityChat/Chat alignment refactor will simplify all of that https://github.com/status-im/status-desktop/issues/14219
2024-05-27 14:27:14 -04:00
Jonathan Rainville 6a820c9e72 fix(categories): fixes categories being always closed on start
Part of https://github.com/status-im/status-desktop/issues/14886

The problem was that we converted `collapsed` to `opened` way too early and with a logic error.

By using collapsed until the module, it's way easier to understand and also fixes the logic mistakes.

I also renamed a couple of functions and variables so that the mistake doesn't happen again.
2024-05-27 14:27:14 -04:00
Mykhailo Prakhov 3c418ab2d0
chore: try/catch blocks for async tasks (#14894) 2024-05-24 17:01:24 +02:00
Mikhail Rogachev bc580a1ff8
chore(Profile): remove old social links code (#14899)
Close #13938
2024-05-24 12:21:42 +02:00
Mikhail Rogachev df3f9984a8
fix: correct member list for new community channels (#14873) 2024-05-22 23:19:07 +02:00
Jonathan Rainville e01d8fe422
fix(links): open status links in the browser when not shared urls (#14845)
Fixes #14844

The problem was that links to status.app that are not shared links were still considered shared urls, because our util function can only check if it contains `status.app`.

The solution is two fold:
1. If there are Link Previews, I ask the link preview for the type of Link. If it's a normal link, I just open it.
2. If there are no Link Preview for that link, we call `parseSharedUrl` as before, but now we handle the failure by opening in the browser because we can assume that it's a normal link.
2024-05-21 14:14:38 -04:00