1084 Commits

Author SHA1 Message Date
Anthony Laibe
a811ee215c fix(@desktop/chat): cannot unpin last message in modal
fixes #2659

1 - Change call from remove to deleteMessage
Remove were not updating the index and was causing the issue

2 - Erase the remove proc as the deleteMessage should always be used
2021-07-20 10:00:26 -04:00
Sale Djenic
abf89fa399 chore(@desktop/general): use different icons for Windows/Linux and MacOS
Icons are updated, mac uses rounded rect log, win and linux circle logo.

Fixes: #2833
2021-07-19 13:37:56 -04:00
Anthony Laibe
4269b51ea6 feat(@desktop/wallet): display confirmation block count
fixes #2715
2021-07-19 13:33:32 -04:00
Anthony Laibe
8a4eeb14c0 fix(@desktop/communities): reaction are being displayed on pinned message
fixes #2838

This also fix the ability to add/remove a reaction to a pinned message
2021-07-19 13:18:59 -04:00
Andrei Smirnov
011b7804ef fix(@desktop/chat): mentions badge cleanup 2021-07-19 12:53:01 -04:00
Sale Djenic
e9585e6209 feature(@desktop/communities): add loading state when import community
Toast message is added when user access an existing community using community's private key. Toast
message with message that importing community is in progress is displayed while community is being
imported and once it is imported toast is closed and new one, which will be closed in 4 seconds,
with message that community is imported is displayed.

Fixes: #2467
2021-07-19 12:27:45 -04:00
Anthony Laibe
9d4fa890b4 fix(@desktop/communities): update communities chat
fixes #2826
2021-07-16 17:59:10 -04:00
Sale Djenic
ecb2bac6e5 fix(@desktop/chat): sign and send appears for both recipient and sender when sharing the address
The reason for this issue is a message where recipient accepted to share his address with sender.
In that message recipient's public key is set as a "from" property of a "Message" object and we
cannot determine which of two users has initiated transaction actually.

This is fixed checking if the "from" address from the "commandParameters" object of the "Message"
is contained as an address in the wallet of logged in user. If yes, means that currently logged in
user has initiated a transaction (he is a sender), otherwise currently logged in user is a
recipient.

We were just sending a transaction, without notifying message about that. Now we call
callPrivateRPC("acceptRequestTransaction".prefix, %* [transactionHash, messageId, signature])
and that notifies message about the change, but only on the sender side. Appropriate message
on the recipient side was not notified about the change. That need to be checked.
2021-07-16 17:41:22 -04:00
Richard Ramos
2f2b3726df feat: waku bloom filter mode switch 2021-07-15 09:41:39 -04:00
Andrei Smirnov
cd423336e1 fix(@desktop): windows application unresponsive when fetching Status updates 2021-07-14 18:28:41 -04:00
Anthony Laibe
511c959121 fix(@desktop/chat): fix sticker/image notification with placeholder
fixes #2450
2021-07-14 18:27:38 -04:00
Anthony Laibe
b31bd265c5 fix(@desktop/profile): chat confirmation notification
fixes #2637

When changing a contact, the notification about being able to chat was sent again.
Prevent this behaviour by ensuring the contact hasn't already been added
2021-07-14 18:17:55 -04:00
Pascal Precht
d10ffd56ce fix: ensure Chat navbar tab button shows correct message count
The chat navbar tab button renders an indicator when there's unread messages
in any of the chats. It also renders a message count, which prior to this commit
equals to the number of total unread messages.

This however is not the desired behaviour. Instead, the count should be the total
number of unread one on one messages (DMs), plus the total number of mentions in any
chats the user is participating in.

This commiit ensures the correct message count is rendered. It also adds an "unread messages"
indicator to community buttons.

Closes #2869
2021-07-14 18:17:21 -04:00
Jonathan Rainville
3e33db039f fix(search): fix 1-1 name, pic, icon and symbol 2021-07-14 17:42:55 -04:00
Jonathan Rainville
6e218ad924 feat: add basic local chat search
Fixes #2771
2021-07-14 17:42:55 -04:00
Sale Djenic
47d1546893 fix(@desktop/chat): app crash when you leave a chat
The issue is happening randomly. I managed to catch it few times and hopefully fix it. Problem was
in leave proc in src/status/chat.nim cause we were sending activeChannelChanged signal from it what
started setting activeChannel to the value of the backToFirstChat variable, and while that process
was in progress setActiveChannelByIndex was called from activeChannel what caused another emit of
activeChannelChanged signal while the previous one was not completed. That caused new setting of
activeChannel with active channel index 0, what caused an app crash.

This is fixed by setting active channel to the first one from the list when we get a signal that
any channel from the list is removed. This way activeChannelChanged is broadcasted to the other
parts correctly.

Fixes: #2825
2021-07-14 16:15:40 -04:00
Anthony Laibe
869ae63518 fix(@desktop/profile): Unmuted chat from profile -> notification
fixes #2557
2021-07-13 17:20:13 -04:00
Sale Djenic
102a385943 fix(@desktop/chat): app crash when you accept contact request
This issue is being happened randomly, no general rule, in my case it happens often when you accept
first contact from the list immediately after the app start, but the ticket says that it happens
when you click accept while context menu is opened.

Two places were threat for this crash and both are fixed here:
- getChannel proc, direct access by index to Chat element of the chats sequence,
- setChatItem proc, where we actually were setting chatItem and accessing its property without
  checking if it is an empty object.

Fixes: #2837
2021-07-13 16:33:08 -04:00
Anthony Laibe
314d1833a2 fix(@desktop/wallet): Iterate over collectible with balance 2021-07-13 11:39:38 -04:00
Sale Djenic
4d148b5c78 fix(@desktop/wallet): app crash when signing token transaction with invalid password
The issue was accessing non existent property after parsing received response. That caused
app crash, fixed now.

Fixes: #2623
2021-07-12 17:01:11 -04:00
Andrei Smirnov
3bb5be8685 fix(@desktop/chat): navigating from Chats to Timeline shows wrong messages 2021-07-12 16:51:20 -04:00
Andrei Smirnov
0eab4009ba fix(@desktop/chat): crash when pinning a message for a chat with cleared history 2021-07-09 12:20:45 -04:00
Pascal Precht
c675aff0f8 refactor(Communities): replace CategoryList and ChannelList` with StatusQ components
This commit replaces `CategoryList` and `ChannelList` with `StatusChatListAndCategories`,
`StatusPopupMenu` etc. provided by StatusQ.

It also removes components that lived inside Status Desktop but are no longer used
anywhere after the refactor.

Since StatusQ components are decoupled from UI model logic, we also needed to introduce
a new API retrieve a community category from within QML.

Closes #2805
2021-07-09 10:39:58 -04:00
Pascal Precht
23b103795a refactor(ContactsColumn): replace ChannelList with StatusChatList
Closes #2745
2021-07-09 10:39:58 -04:00
Richard Ramos
9e58563fcf feat: community userlist
Fixes #2810
Probably a big chunk of the code from this PR is going to be replaced by #2811
2021-07-08 14:14:27 -04:00
Sale Djenic
7fbccec227 fix(activity_center): Mark as read does not clear @ symbol in chat
Mark all mention notifications as read is fixed. Also mark as read one by one notification removes "@" from the appropriate channel along with the marking as read last mention notification for that channel. hasMention field which was bool is switched with mentionsCount field which is int, so we have evidention how many mentions were for each channel.

Fixes: #2788
2021-07-07 14:25:52 -04:00
Richard Ramos
c5cc001ee1 fix: code review 2021-07-07 06:19:41 -04:00
Richard Ramos
2fcbe4ac16 feat: user list 2021-07-07 06:19:41 -04:00
Pascal Precht
189d761d20 fix(Status): import missing utils module
There's an API used in `provider.nim`, which is defined in `utils.nim` but utils aren't imported.
The usage of that API was introduced in 065bd26786 (diff-778feda87f0918b600d692bd16cdd1af92ae0611f81ae6557749e5f462636694R127)
2021-07-07 11:06:24 +02:00
Jonathan Rainville
e1c6cf224b fix(act-center): fix unread count when accepting or dismissing notif
Fixes #2727
2021-07-06 12:51:43 -04:00
Jonathan Rainville
cd44b8a606 feat: add group requests to the activity center
Fixes #2679
2021-07-06 12:51:43 -04:00
Richard Ramos
065bd26786 fix: code review 2021-07-06 11:58:47 -04:00
Richard Ramos
5f7f899c3b refactor: separate slots for sending eth and tokens 2021-07-06 11:58:47 -04:00
Richard Ramos
fd976c770d fix: notifications 2021-07-06 11:30:07 -04:00
Richard Ramos
2c553f48f7 fix: issues 2021-07-06 11:30:07 -04:00
Richard Ramos
c7750da267 feat: edit messages 2021-07-06 11:30:07 -04:00
Eric Mastro
77e501c478 fix(wallet): QML error when loading history
Fixes: #2725.

When clicking on the History tab for a wallet account, there was a QML error for `qrc:/app/AppLayouts/Wallet/WalletLayout.qml:113: TypeError: Property 'checkIfHistoryIsBeingFetched' of object HistoryTab_QMLTYPE_503(0x7fed35da2710) is not a function`. This must have been reintroduced when StatusQ objects were introduced. It has now been removed.

chore: change log level to warn for non-archival node
Previously, there was an error being logged for non-archival infura nodes being used (typically in dev). This log level has been reduced to a warning as the application still functions with non-archival nodes.
2021-07-06 11:28:00 -04:00
Richard Ramos
0f66508a79 fix: invalid keyuid being used with a newly generated account on first login 2021-07-06 11:06:23 -04:00
Andrei Smirnov
7255dcd256 Fixed: starting a group chat shouldn't show the section to fetch more messages. 2021-07-06 10:57:37 -04:00
Sale Djenic
6f55c51ff2 fix(wallet): Crash when enter -1 to Gas Selector
Validation check is updated, so user cannot enter zero or less than zero value for "gas amount limit" or "per-gas overall limit".
In gas.nim a crash prevention check is added.

Fixes: #2753
2021-07-06 10:46:07 -04:00
Sale Djenic
a9fd4513aa fix(wallet): Clicking Request Address when sending -1 STT crashes the app
Validation check is updated, so user cannot enter zero or less than zero value in amount input field.
Also in utils.nim a crash prevention check is added so if we try to convert a less than zero float number to an unsigned number, app won't crash any more, but that casting will return a zero as unsigned int number.

Fixes: #2755
2021-07-06 10:45:25 -04:00
Andrei Smirnov
746d120479 Added $HEZ as default ERC-20 token. 2021-07-06 10:44:45 -04:00
Richard Ramos
516d1974b2 fix: pin messages counter and load 2021-07-06 10:44:20 -04:00
Jonathan Rainville
2e98724641 feat(community): add notification setting to community
Fixes #2421
2021-07-06 10:41:10 -04:00
Jonathan Rainville
60b6390581 chore: fix nim import warnings 2021-07-02 08:56:49 -04:00
Jonathan Rainville
10601710e9 fix(community): fix crash on going back to chats from community
Fixes #2504
2021-07-02 08:53:51 -04:00
Jonathan Rainville
dfebe88be7 fix(communities): fix duplicated communities and joining through link
Fixes #2665
2021-07-02 08:51:48 -04:00
Richard Ramos
ba2b553d7c refactor: Profile 2021-07-02 08:51:30 -04:00
Eric Mastro
4c0371144b fix: chat view shown after community creation
Fixes: #2686.

Previously, when using a new account, joining a chat then creating a community and then returning back to the chat would not show a chat at all and instead show the default chat view. This was due to the previous index not being set when there were no other channels in the chat.

This has been updated such that the previous channel index is set when switching from chat to community and no previous channel index has been set.

# Conflicts:
#	src/app/chat/view.nim
2021-06-29 07:56:51 -04:00
Jonathan Rainville
b720a611c4 fix(wallet): fix loading of initial balances 2021-06-29 07:55:26 -04:00