1070 Commits

Author SHA1 Message Date
Iuri Matias
1b7799944e remove unnecessary imports 2021-06-17 11:11:36 -04:00
Iuri Matias
985532ce9a fix issue with import & namespace conflict 2021-06-17 11:11:36 -04:00
Iuri Matias
01dc488870 remove logic from ens manager view 2021-06-17 11:11:36 -04:00
Iuri Matias
80456eaa10 remove libstatus references from the wallet view 2021-06-17 11:11:36 -04:00
Iuri Matias
a90aa4cc3a refactor chat usage of libstatus 2021-06-17 11:11:36 -04:00
Iuri Matias
2e8af89adf refactor stickers usage of libstatus 2021-06-17 11:11:36 -04:00
Iuri Matias
29e794b8cf refactor token_list usage of libstatus 2021-06-17 11:11:36 -04:00
Iuri Matias
000ddf0ddc remove more libstatus references from src/app 2021-06-17 11:11:36 -04:00
Iuri Matias
8bb2dbb82a remove references to libstatus constants from src/app 2021-06-17 11:11:36 -04:00
Iuri Matias
f7a8b14bfb remove more references to libstatus stickers 2021-06-17 11:11:36 -04:00
Iuri Matias
482aac8e98 refactor libstatus utils references 2021-06-17 11:11:36 -04:00
Iuri Matias
6e99b769be remove libstatus browser references 2021-06-17 11:11:36 -04:00
Iuri Matias
eab9d68aff move types out of libstatus; remove libstatus types references 2021-06-17 11:11:36 -04:00
Iuri Matias
daed733ebb remove libstatus accounts references 2021-06-17 11:11:36 -04:00
Iuri Matias
be696ad20f add mailserver layer to status lib; remove references to libstatus mailservers 2021-06-17 11:11:36 -04:00
Iuri Matias
ceb7f85e4e remove most references to libstatus wallet 2021-06-17 11:11:36 -04:00
Iuri Matias
e8de7e0c99 remove most direct references to libstatus; document some common issues 2021-06-17 11:11:36 -04:00
Iuri Matias
36c25aaab9 fix issue with calling getSettings; document issue 2021-06-17 11:11:36 -04:00
Iuri Matias
09f77177b0 add getSettings methods to src/status 2021-06-17 11:11:36 -04:00
Jonathan Rainville
b1bcd539a2 feat: add replies to the activity center 2021-06-15 13:14:19 -04:00
Jonathan Rainville
5f7e277065 feat: make it possible to mark individual as read
Fixes #2663
2021-06-15 13:14:19 -04:00
Jonathan Rainville
0b00a426ae feat: add show more button to activity center
Fixes #2670
2021-06-15 13:14:19 -04:00
Jonathan Rainville
414b39d7e0 feat: add mentions to activity center and interactions
Fixes #2610
2021-06-15 13:14:19 -04:00
Eric Mastro
45286e179c fix: kick and re-invite user to group chat
Fixes: #2601.

Kicking a user and re-inviting them now correctly redisplays the join/decline options. Other combinations of User B leaving or declining an invitation are not handled. Please see the notes below for clarification.

Additionally, the group invite popup (that shows the list of members belonging to the group) correctly shows when a user is kicked or when a user leaves the group in real time. Previously, the popup needed to be reopened to display this.

fix: decline invitation crash
Declining a group invitation was crashing the app. This has been fixed.

### NOTES
1. In the case where User A invites User B to a group, but User B declines (or User B joins, then leaves), then from a status-go standpoint, User B is still part of the group, but the chat is marked as `active: false` for User B. This creates a situation where User B cannot re-join the group once s/he has declined the invitation. @cammellos mentioned there possibly will need to be a refactor of cab6281dc5/protocol/messenger.go (L1710) (which, by retaining User B as a member, effectively prevents the re-invitation) once “swipe to delete” is implemented on mobile. There is an activity center notification received for User B that is meant to allow re-joining of the group when the notification is accepted. The activity center notification received from status-go looks like the following:
```json
"activityCenterNotifications": [
      {
        "id": "0x0e342d33",
        "chatId": "e342d33f-dd05-4d7b-b14e-b5335e1a3ee9-0x043bf46aa874c377a34946eab67a32cf36c15907b328216dfce375d169fed7d81c21cada3229db1fd37c762d2c02702111a646657feca6621e2e948febcf378fb4",
        "name": "test-22",
        "type": 2,
        "lastMessage": null,
        "message": null,
        "timestamp": 1623305612000,
        "read": false,
        "dismissed": false,
        "accepted": false
      }
    ]
```
2021-06-11 11:03:16 -04:00
Jonathan Rainville
32676d50af fix: fix pinnedBy not being right when reopening the app 2021-06-11 10:55:55 -04:00
Richard Ramos
78f7bddb36 Remove community from list after being kicked/banned from it
Fixes #2517
2021-06-10 19:33:14 -04:00
Eric Mastro
0b0a542828 fix: loading of wallet history, display of tx datetime
Fixes: #2539.

Transaction history is now correctly being fetched from status-go as per mobile. Firstly, when accounts are added (ie as watch accounts), `wallet_checkRecentHistory` must be called first so that the status-go db is populated. After that, `wallet_getTransfersByAddress` can be called. On app load, when we run the `initBalance` logic, we are calling `wallet_getTransfersByAddress`, asking for the last 20 transactions with the `loadMore` parameter set to false. When the user navigates to the Wallet > History tab, they can then click “Load More” to fetch more transactions from status-go. Once the number of transactions returns false below the expected amount, the remaining transactions to fetch have been exhausted and the “Load More” button is disabled.

feat: add non-archival node warning to the UI to indicate to the user that they may not have complete results

feat: set active account to the added account
Once an account is added to the wallet, that newly added account is selected as the active account.

1. The “load more” button is active when new transactions that aren’t already displayed are returned from `wallet_getTransfersByAddress`. This is the only way to enable or disable the “Load more” button as status-go is not able to return information regarding whether or not there are more transactions to be fetched. The downside to this is that lets say the last page of transactions is returned, but there are no more pages left. These returned txs are not currently displayed, so the “load more” button will still be enabled. However, the next click of the button will return 0 results, thus disabling it. It’s effectively an extra click to get to the disabled state.
2. For more information on how the `toBlock` parameter operates for the `wallet_getTransfersForAddress` RPC call, see https://notes.status.im/XmENTrVRRaqhwE4gK0m8Mg?view.
2021-06-10 10:47:03 +10:00
Eric Mastro
21e6affa98 feat: edit community channels
Closes #2344.

Add ability to edit name, description, and private fields of a community channel.

feat: Display community channel description
Ensure the width of the description does not surpass the context menu and instead wraps to the next line.

feat: After channel is created, set it as the active channel
2021-06-09 10:19:26 +10:00
Michael Bradley, Jr
816b2f0ee9 fix: on macOS remove -psn_... cli params before processing with confutils 2021-06-03 14:01:06 -05:00
Iuri Matias
e88f4aa170 fix: rename transactionHash to hash due to breaking changes in the api 2021-06-02 16:41:04 -04:00
Jonathan Rainville
6895dc6c6c fix: fix community crash when no chat is active
Fixes #2628
2021-06-02 12:04:55 -04:00
Eric Mastro
815abdc226 fix: Timeline view crash with SIGSEGV when loaded
Fixes: #2618.

The main culprit was that `self.pinnedMessagesList` did not contain the `self.activeChannel.id` because it was correctly upserted in `upsertChannel`.

To fix this, when calling `upsertChannel`, `self.pinnedMessagesList` was checked if it contained an entry for the upserted channel first before adding it to the list.

Nil checks were added to parsing the messages RPC response in case specific fields were not returned in the response.

In addition, a copy/paste error was fixed in `asyncMessageLoadTask`.
2021-06-02 11:54:56 -04:00
Jonathan Rainville
18b26a1c67 start of activity center function calls 2021-05-31 15:54:18 -04:00
Pascal Precht
f138f93815 fix(Communities): disable chat input when active user is banned
Fixes #2507
2021-05-31 13:57:02 -04:00
Richard Ramos
0498613d28 fix: unread count 2021-05-31 10:29:10 -04:00
Jonathan Rainville
7b95031ee6 hide input field until mutual contacts and notify on contact accepted 2021-05-28 13:31:33 -04:00
Jonathan Rainville
ecf8b241f0 feat: add setting to not receive contact requests 2021-05-28 13:31:33 -04:00
Jonathan Rainville
436cb42eae feat: add contact requests and handling of them 2021-05-28 13:31:33 -04:00
Eric Mastro
24d8e429b8 feat: edit communities
Allow editing of Community name, description, image, colour, and access.
2021-05-28 19:08:19 +10:00
Eric Mastro
c415f3b989 fix: interrupt running sticker task when exiting
Fixes: #2318.

Currently, when exiting the app and the sticker packs task is being run, the app will wait for the sticker packs task to completely finish before exiting the app. This causes a beachball to be displayed and can cause a long delay while waiting for the task to finish.

This PR passes an interrupt signal to the sticker pack loading task in the threadpool thread. The task loads the interrupt on each iteration of its loop (each sticker pack to load) and also during the processing of each sticker pack (getting of sticker pack data). This allows the application to exit neatly.

fix: Handle shutdown of long-running (marathon) task before login
Currently, we wait for the “loggedIn” message to be passed to the marathon task runner before initialising the mailserver model. We were, however, blocking the thread until “loggedIn” was received, meaning that if “shutdown” was received (as it is when cmd+q is pressed), this message would be ignored and the application would have to be forced to quit.

This PR adds logic that not only listens for the “loggedIn” message, but also for the “shudown” message. Once the “shutdown” message is received, the marathon worker thread exits.
2021-05-27 16:19:10 +10:00
Richard Ramos
fb47d73e79 fix: set nickname without creating a contact
Fixes #2589
2021-05-26 18:10:46 -04:00
Jonathan Rainville
c8cc65506b fix(CommunityRequest): fix request list emptying after accepting
Fixes #2474
2021-05-26 15:27:49 -04:00
Jonathan Rainville
0fe7da0480 feat(community): fetch community info from link
Fixes #2290
2021-05-26 15:27:49 -04:00
Jonathan Rainville
c1f6afd799 fixes 2021-05-26 12:12:05 -04:00
Jonathan Rainville
8952d55028 update status-go to develop version 2021-05-26 12:12:05 -04:00
Jonathan Rainville
b52dceb984 feat(Chat): add pinned messages feature 2021-05-26 12:12:05 -04:00
Richard Ramos
872aa7794c feat: edit categories 2021-05-25 15:23:07 -04:00
Richard Ramos
0ded790f0d feat: create community categories 2021-05-25 15:23:07 -04:00
Richard Ramos
f86611303f feat: updated mailserver logic 2021-05-25 14:47:13 -04:00
Richard Ramos
62d7fc9853 feat: mailserver gaps 2021-05-25 14:47:13 -04:00