2
0
mirror of https://github.com/status-im/status-desktop.git synced 2025-03-02 23:41:18 +00:00

2134 Commits

Author SHA1 Message Date
Pascal Precht
b510b33730 feat(communities): allow community import via public key
Status allows for importing communities via their private keys.

There's a requested feature that users should be able to import a community via
its public key as well.

This will behave differently as private keys won't give users ownership
of the communities. When importing via a (compressed) public key, Status
will try to fetch information about the community from the network. If it
finds such information, it'll load it into the app and create
a communitiy view from which users can then request access.

If it can't find a community or community information in the network,
the user will get a dedicated error message.

This commit also refactors the `ImportCommunityPopup` such that it uses
`StatusDialog` and updates the copy accordingly since importing via
public key is now possible as well.

Closes 
2022-12-07 14:18:08 +01:00
Lukáš Tinkl
e13726e4af feat(SocialLinkPreview): links are too short to display even short urls
- rework the way social links are displayed/editted; we now only allow to
enter a so called "handle" and then substitute that in the final URL
template
- move the "icon" model role to NIM backend

This has several advantages:
- we display only the "handle" and don't have to elide some long URL
- we won't let users enter random URLs into their profile and spoof the
viewing part into clicking it

Additionally, make the social link "button" clickable -> navigate to the
target URL, and make the tooltip behave as "usual" (on mouse hover).
2022-12-07 12:40:58 +01:00
Patryk Osmaczko
07523d2c85 chore(chat/messages): extract MessageCursor 2022-12-07 00:23:25 +01:00
Patryk Osmaczko
c4525778a8 fix(chat/messages): prevent multiple same cursor fetches
It may happen `asyncLoadMoreMessagesForChat` is called many times in a
row. Previously it did not check whether there is any pending fetch for
a given chat, which resulted in many same cursors fetches from status-go.
Furthermore, in this case, `lastUsedMsgCursor` ended up with the same
value as `msgCursor` resulting in wrong state where there are no more
messages to fetch.

- Simplified message loading code by introducing MessageCursor helper
  type
- Ensured messages are not loaded twice for the same cursor

fixes: 
2022-12-07 00:23:25 +01:00
Jonathan Rainville
2f338ecb09 fix(windows): use QML's OS notification for Windows
Fixes 

The custom OS notifications we have in place make it possible to click
the notification and go to the right place in the app, but it causes a
big issue in Windows; it breaks the tray icon, it becomes no longer
clickable.
The easy fix I did here is the go back to using the QML sendMessage
function. It works fine to send the notif and the tray icon keeps
working. The only downside is we lose context when clicking on the
notification, so it doesn't navigate to the chat.
IMO, this is a good tradeoff.
2022-12-06 10:04:56 -05:00
Jonathan Rainville
a94750fb2d refactor(settings): make calling settings_getSocialLinks only once
Fixes 

That status-go call was done A LOT because we try to access our own data often and we didn't use to cache it.
2022-12-06 10:02:17 -05:00
Boris Melnik
c801c869e6 fix(communities): Break loop when cancel request was sent
Fixes: 
2022-12-06 15:01:08 +03:00
Michal Iskierko
0a4f5fa27c fix(@desktop/chat): Fix updating channel color after admin updated it.
Issue 
2022-12-06 11:14:23 +01:00
Khushboo Mehta
779df7628b fix(@desktop/wallet): Remove gas selector for slow, optimal and fast
fixes 
2022-12-05 14:51:39 +01:00
Dario Gabriel Lipicar
8fd5e9d1af fix(@desktop/wallet): fix wallet account item balances
Fixes: 
2022-12-05 10:23:44 -03:00
Khushboo Mehta
0c7442d696 fix(@desktop/wallet): Wrong Password error should not be handled in the SendModal
fixes 
2022-12-05 13:59:06 +01:00
Khushboo Mehta
26fcb8b99f fix(@desktop/wallet): Implement missing unprefered chains
fixes 
2022-12-05 12:18:10 +01:00
Richard Ramos
97190ce716 fix: read fleet from nodeconfig if not available in settings 2022-12-05 11:11:30 +01:00
Boris Melnik
5c7dc4c330 feat(messaging): Skip deleted and deletedForMe messages
Fixes: 
2022-12-03 21:06:58 +03:00
Sale Djenic
8aa36068a0 fix(@desktop/keycard): modal title edits and migrate flow
- 01: Keycard settings menu labelling - fixed in this commit
- 02: Modal title renaming - not developed yet
- 03: Additional decision diamond and flow - not developed yet
- 04: Modal title renaming - not developed yet
- 05: Modal title renaming - done in issue 
- 06: Copy change - fixed in this commit

Fixes: 
2022-12-02 19:04:24 +01:00
Jonathan Rainville
2276706fd8 fix(network_constants): fix torrent port clash by adding PORT_SHIFT
Fixes 

The torrent port was clashing with the release app since both of them have it on by default now. That was causing the messenger to fail on start.
This new PORT_SHIFT env var can be used to shift the port of the torrent service and wakuV2. No more need to use WAKUV2_PORT.
we can also add more ports that need shifting.
This enables opening multiple instances of the app very easily. Just increase PORT_SHIFT by one
2022-12-02 11:47:58 -05:00
Sale Djenic
49da859947 feat(@desktop/keycard): create a backup copy of a Keycard
Fixes: 
2022-12-02 17:26:06 +01:00
Sale Djenic
c64d5560a6 refactor(@desktop/keycard): remainingAttempts introduced as new prop, instead of using keycardData prop 2022-12-02 17:26:06 +01:00
Sale Djenic
192b5426b2 refactor(@desktop/keycard): state_factory splitted in two more files
Old `state_factory` logic is splitted in two more files. Now it represents only
an interface, but implementation logic is placed in the following two files:
- `state_factory_general_implementation.nim`
- `state_factory_state_implementation.nim`
2022-12-02 17:26:06 +01:00
Lukáš Tinkl
271ccbb820 fix(settings): open links in external browser
remove the dialog that asks users if they would like to open a link in
Status Desktop's browser and always open them in the user's external
browser

Fixes 
2022-12-02 16:24:58 +01:00
Richard Ramos
7261c78650 fix: display an error if StartMessenger fails 2022-12-02 11:07:40 -04:00
Anthony Laibe
1e086de456 feat(@wallet): move timer to status-go 2022-12-02 11:28:47 +01:00
Anthony Laibe
0d217c0db0 feat: add wallet token integration 2022-12-02 10:17:47 +01:00
Igor Sirotin
e3bfdc0f09 fix(StatusPopupMenu): Refactoring 2022-12-02 10:30:50 +03:00
Khushboo Mehta
13ab93297e fix(@desktop/wallet): Fix routing lines in SendModal Advanced view
fixes 
2022-12-01 21:20:15 +01:00
Pascal Precht
d5db1e6356 Add banner that indicates history archive downloads are in progress
This needs: https://github.com/status-im/status-go/pull/2995
2022-12-01 18:01:27 +01:00
mprakhov
75b5a583dd fix(@desktop/chat): Pending request disappear from the contacts list when blocked and unblocked 2022-12-01 17:52:48 +02:00
Jonathan Rainville
b65211ac94 feat(Settings): Enable Community Archive by default and remove toggle
Closes: 
Original commit by @borismelnik
2022-11-30 14:41:48 -05:00
Richard Ramos
50b4dacfef feat: use identify protocol instead of separate wakuv2 nodeconfig items 2022-11-30 11:23:41 -04:00
Boris Melnik
bff6b22fc4 fix(replies): Get original message from status-go for replies
Fixes: 
2022-11-30 14:07:49 +01:00
Jonathan Rainville
dd1caf7a48 hotfix(wallet): comment out history timer to fix app hanging on close
Fixes 

Threads in Nim are very bad and when the app closes, the thread doesn't close until it is done. That means that the 20 minute timer needs to finish before it can be closed.
2022-11-29 10:37:35 -05:00
MishkaRogachev
726ae26128 hotfix(ActivityCenter): Fix AC timestamps and binding loop for previousMessageIndex
Close 
2022-11-29 16:49:36 +04:00
Pascal Precht
213924f6e9 feat(chat): support copy & pasting images into chat input
This adds support for receiving copied images from the clipboard
and pasting it into the chat input.

After pasting, chat input will recognize the image and render a preview
similar to how it would do it when selecting images via the file dialog.

**Also important to note**:

At the time of this PR, it seems that desktop only supports sending
jpegs to status-go. I'm not sure if this was deliberately done this way
because the protocol says it supports jpg, png, webp and gif.

Because of this, pasting for example pngs will work, however
transparency will be lost (which is also most likely the cause of )

This PR operates on that assumption. So while it adds support for
copy/pasting images, it does not address the lack of file type support.

Closes 
2022-11-29 12:31:18 +01:00
Jonathan Rainville
10684c22a0 fix(chat): dont notify or show badge on muted channels
Fixes  and fixes 
2022-11-28 13:40:11 -05:00
Richard Ramos
e2f157018c chore(storenode): bump status-go, and log result of each storenode requests 2022-11-28 10:07:20 -04:00
Richard Ramos
c207ee126f feat: show peer multiaddresses with wakuext_peers 2022-11-28 09:27:57 -04:00
MishkaRogachev
8b9b399077 fix(Contacts): Add self id for identity verification requests
Close 
2022-11-28 14:14:04 +04:00
Patryk Osmaczko
4917f46785 chore(chat/stickers): expose loadStickers to the view 2022-11-25 17:06:59 +01:00
Patryk Osmaczko
8b4d527651 chore(chat/stickers): propagate stickers loading failure 2022-11-25 17:06:59 +01:00
Pascal Precht
d8bda2490a fix(communities): handle removed community chats properly
We were ignoring the `removedChats` in the messenger response and
therefore never processed deleted community chats in the client.

This commit adds `removedChats` to `handleCommunityUpdates()` and
ensures that the community channel's ID is used when emitting a signal
to the app.

This needs: https://github.com/status-im/status-go/pull/2973

Closes 
2022-11-25 09:21:50 +01:00
mprakhov
92da7ee9a3 fix(@desktop/test): [suite_communities / tst_communityFlows] - 'The admin changes the emoji of a channel' 2022-11-24 14:50:43 +02:00
Dario Gabriel Lipicar
4907f52b46 refactor(@desktop/wallet): remove unused 'collectible' module 2022-11-23 15:29:19 -03:00
Dario Gabriel Lipicar
ecd799c209 fix(@desktop/wallet): fix switch accounts after opening collectible details
Moved logic for CollectibleDetailView to Nim module.
2022-11-23 15:29:19 -03:00
Pascal Precht
ba4c4b3e93 fix(Settings): better error handling for toggling archive protocol
Enabling the community archive protocol could fail when another app is
using the same port that is specified as torrent client port.

This would cause the app to crash.

With these changes we:

1. No longer crash the app but output an error in the logs
2. We popup a dialog telling the user that the specified pord is in use

Closes 
2022-11-23 14:56:08 +01:00
Boris Melnik
f6458facfc fix(messaging): Fix processing successfuly sent messages and remove @mayfail from relevant ui test
Fixes: 
2022-11-22 14:19:08 -05:00
Khushboo Mehta
6c0806c2e1 (@desktop/wallet): Fix for pending tx not shown in history view
fixes 
2022-11-22 13:57:50 +01:00
mprakhov
0baa49c978 fix(@desktop/chat): No visual notification about new messages in community channels 2022-11-22 10:46:18 +02:00
Lukáš Tinkl
6e5b98d157 fix(ChatHeaderContentView): reflect nickname changes in 1-1 chat
Fixes 
2022-11-17 12:59:19 +01:00
Igor Sirotin
f022e02efe fix(Chat): Added group/channel name to notifications title 2022-11-17 13:04:06 +03:00
Stefan
7d9f13e4bd fix() don't change global network selection in receive modal
Adds a networks proxy model to be used with the original source model
for visualization and independent selection of isEnabled (as isActive) for a custom
purpose.

Use the proxy in the receive modal dialog for selection of networks
to be included in the address. This way the view follows the original
model but allows independent selection of networks.

Closes: 
2022-11-16 15:40:03 +01:00