2746 Commits

Author SHA1 Message Date
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
Stefan
691de11211 fix(Wallet) network selection and unify network implementations
Major changes:

- Don't allow empty network selection. End up using the nim model
  directly instead because of individual row changes issues
  encountered with nim models
- Made the clone model a generic implementation to be used in other
places where we need to clone a model: ReceiveModal,
AddEditSavedAddressPopup
- Use cloned model as alternative to NetworksExtraStoreProxy in
  ReceiveModal
- Added tristate support to our generic checkbox control
- UX improvements as per design
- Fix save address tests naming and zero address issue
- Various fixes

Notes:
- Failed to make NetworkSelectPopup follow ground-truth: show partially
  checked as user intention until the network is selected in the
  source model. Got stuck on nim models not being stable models and
  report wrong entry change when reset. Tried sorting and only updating
  changes without reset but it didn't work.
- Moved grouped property SingleSelectionInfo to its own file from
  an inline component after finding out that it fails to load on Linux
  with error "Cannot assign to property of unknown type: "*".".
  It works on MacOS as expected

Closes: #10119
2023-04-20 19:34:24 +02:00
Anthony Laibe
4e5f7763db feat:(@wallet): create wallet section in profile
Separate wallet module from profile wallet module
1 - they caused us many conflict regarding current
2 - better decoupling
2023-04-20 09:40:54 +02:00
Dario Gabriel Lipicar
fb8ea4a054 feat: add api to get list of owners from a given nft contract
Fixes #10290
2023-04-19 16:34:58 -03:00
Jonathan Rainville
2aa759adcf refactor(section-model): change model to be sorted to fix reorder
Part of #3364

To make the drag and drop reorder work correctly on channels, we needed to change the model again so that it was sorted in the model itself.
That is because the drag and drop gives us the value of the position it is dropped to as a single list, so dragging the second item of the second category would mean from position 5 to position to position 4, but what the backend wants is moving the item 2 to position 1.
Sorting the model enables us to get the category that is the parent of that position and call the service with the right positions and id.
It also enables us to reorder the channel in and out of the category.
See the module code to see how the calculation is done with an explanatory comment.
The model needed some changes to support that. Some of the function where changed from dataChange calls to resetModel calls, since we need to re-sort the model.
I tried using beginMove, but it would crash. Maybe there is a bug in NimQML or I used it badly, I'm not sure.
2023-04-19 12:26:15 -04:00
Patryk Osmaczko
a362cdad16 refactor(chat): remove unused section unloading 2023-04-19 11:13:01 +02:00
Patryk Osmaczko
9a7699b52f refactor(chat): rename ActiveSection to SectionDetails 2023-04-19 11:13:01 +02:00
Jonathan Rainville
136635670e fix(category): fix category highlight calculation
Fixes #10313

There were a couple of small issues.
First, we didn't call the function to calculate the highlight on new messages.
Secondly, the calculation was bugged because the category wasn't saved correctly in the channelGroup update.
2023-04-18 14:17:13 -04:00
Richard Ramos
cacca6ff31 chore: set default sync period to 9d via status-go migration 2023-04-18 11:24:18 -04:00
Lukáš Tinkl
a2a6287537 fix(StatusStickersPopup): fix reloading views with online status changes
- hide the market and other stuff that can't be used while offline
- recent stickers and already installed packs can still be used; they
will be sent when we return online
- when we return online, reload the views instead of closing the popup
- fix an evil NIM typo that prevented reloading the already installed
sticker packs
- remove the NIM parts that haven't been ported to the async nature; just
`loadStickers()` on the QMl side does the trick
2023-04-18 13:45:38 +02:00
Patryk Osmaczko
e2697ae5aa feat(chat): implement jump to mention
closes: #9069
2023-04-17 18:53:42 +02:00
Patryk Osmaczko
e822c37716 feat(chat): implement marking specific messages as seen
iterates: #9069
2023-04-17 18:53:42 +02:00
Khushboo Mehta
2e68c97c8e fix(@desktop/wallet): Wallet: user can click on dummy loading items from activity-history and open an empty transaction view
fixes #10083
2023-04-17 15:47:56 +02:00
Michal Iskierko
81f97157e6 fix(@desktop/communities): Fix computing balances for different chains during deployment
Fix #10308
2023-04-17 15:21:13 +02:00
Michal Iskierko
7055a77a96 fix(@desktop/communities): Displaying toast messages when minting
Fix #9849
2023-04-17 15:11:35 +02:00
Anthony Laibe
2a6d00b939 feat(@wallet): add overview module 2023-04-17 13:31:49 +02:00
Alex Jbanca
d1ffa2e3b3 perf(ChatLoadingTime): Separate get chat messages and get pinned messages in different tasks 2023-04-17 13:18:30 +03:00
Patryk Osmaczko
89efb1cd71 fix(chat): better integrate new messages marker with loading state
- new messages marker is reevaluated only if chat has unviewed messages
- loading state is reevaluated only when chat is made active, this fixes
  case described here:
https://github.com/status-im/status-desktop/pull/10151#discussion_r1158702638

fixes: #10275
2023-04-14 19:38:45 +02:00
Mikhail Rogachev
c1b28d23c5
fix(ActivityCenter): Update status-go ActivityCenterNotificationTypeCommunityKicked and fix accepting community requests from AC (#10283)
* fix(ActivityCenter): Move ActivityCenterNotificationTypeCommunityKicked to the right place

Close #9811

* fix(ActivityCenter): fix accepting community request to join
2023-04-14 15:27:13 +04:00
Igor Sirotin
aefa2b9f48
fix(StatusQ): StatusQ is QML module (#10207)
* StatusQ QML module
* qzxing is static lib again
* updated StatusQ resources
* fixed Emoji lookup
* added display to tests-imports ci
2023-04-14 11:18:56 +03:00
Sale Djenic
2fae4cdaf1 fix(@desktop/wallet): a few wallet account related issues fixed
- index was not returned properly because of case sensitive address comparison
- delete account was not done properly for keycard accounts
- after login the app was asking for store to keychain even it was a test environment
2023-04-13 19:51:10 +02:00
Jonathan Rainville
2551ee0914 fix(chat-service): fix chatsWithCategoryHaveUnreadMessages for catID 2023-04-13 13:47:58 -04:00
Michal Iskierko
3e550bf9a5 fix(@desktop/communities): Tracking airdrop transaction
Fix #10161
2023-04-13 12:06:04 +02:00
Boris Melnik
5a5ade5ccd fix(os-notifications): Add Image text to notifications with image without a text
Fixes: #10162
2023-04-12 20:00:37 +03:00
mprakhov
8c874a90d2 fix(@desktop/communities): show members in spectate mode for open communities and hide for closed communities 2023-04-12 18:04:07 +02:00
Anthony Laibe
b4459c5858 feat: simply rename current account to assets 2023-04-12 10:49:58 +02:00
Dario Gabriel Lipicar
ed6ea5d90c feat(@desktop/wallet): add support for more NFTs media types
Fixes #9836
2023-04-11 12:40:38 -03:00
mprakhov
f5a74427b9 fix(@desktop/community): membership request button disappears when a category is edited 2023-04-11 15:46:15 +02:00
Anthony Laibe
52c01f1dd5 feat(@wallet): make activity respect networks selector 2023-04-11 10:44:34 +02:00
Ivan Belyakov
056dad2ce2 fix(@desktop/wallet): fix first section in activity to be displayed as loading
Fix balance in loading state to use loading component instead of 0
Fix width of some components in loading state.
Remove property modelDataValid in favor of existing isModelDataValid.
Fix loading items not always properly removed before adding new
transactions.

Fixes #9617
2023-04-10 18:07:15 +04:00
Ivan Belyakov
89055e1b08 fix(@desktop/wallet): fix scrolling transactions list reset to top when
new ones are fetched.

Fixes #9617
2023-04-10 18:07:15 +04:00
Patryk Osmaczko
3e3c9e7bdf fix(chat): use scrollTo mechanism for firstUnseenMessage
- it ensures enough messages are loaded when `firstUnseenMessage` is not
  within the range of initially loaded messages

fixes: #10197
2023-04-07 16:26:26 +02:00
Boris Melnik
cbdc3e61b5 fix(images): Display image placeholder when image from album not loaded
Fixes: #9990
2023-04-07 15:42:12 +03:00
Boris Melnik
0682672890 fix(Communities): Emit the signal about community tags changes
Fixes: #10146
2023-04-07 15:41:43 +03:00
mprakhov
3c606625d6 fix(@desktop/activityCenter): jump to message by clicking on notification 2023-04-07 14:16:30 +02:00
Khushboo Mehta
98a2328517 fix(@desktop/wallet): Browser: can't do transactions in simpledapp
fixes #10192
2023-04-07 14:10:46 +02:00
Alex Jbanca
23f493f251 fix(MembershipRequests): Remove MembershipRequestsPopup and set-up the navigation to CommunityMembersSettingsPanel
Part of https://github.com/status-im/status-desktop/issues/9912
2023-04-07 11:21:34 +03:00
Sale Djenic
52494d0b08 fix(@desktop/wallet): wallet account build token logic updated 2023-04-06 19:29:16 +02:00
Sale Djenic
e02b1befd8 fix(@desktop/wallet): guarded access to tables of token service 2023-04-06 19:29:16 +02:00
Sale Djenic
2d3ff3ebc7 fix(@desktop/wallet): guarded accessing values by key of template cache class 2023-04-06 19:29:16 +02:00
Sale Djenic
14423dfedd fix(@desktop/wallet): add missing currency uppercase 2023-04-06 19:29:16 +02:00