56 Commits

Author SHA1 Message Date
Jonathan Rainville
0358b6bf80 feat(community): make on request comm a check box and remove ensOnly
Fixes #5660
2022-05-12 13:31:48 -04:00
Pascal Precht
d70a23cb9a fix(CommunityService): ensure communitySettings aren't mistakenly
overwritten

When communities are edited, status-go sends a signal with the community
description, to ensure the network is updated to the latest changes.

However, that community description doesn't include `communitySettings`.
When we then compose the `CommunityDto` object from that signal, it will have
a default certain settings to `false` which might actually be `true`.

The result is that data in memory is incorrect.

To ensure we don't run into this issue, we check whether the attached
settings have an id, if they don't, we know the settings do not
originate from the signal data, meaning we can use the settings we
already have.
2022-05-12 12:20:23 -04:00
Anthony Laibe
a0bebeb78b fix(@communities): Better error message when failing to import
community

fixes #5382
2022-05-12 13:29:15 +02:00
Pascal Precht
348516d5a5 chore: add safeguards when checking for community data in response
Also remove unnecessary signals
2022-04-13 10:22:55 +02:00
Pascal Precht
8d4aa7dd56 feat: introduce communities settings and history archive support UI
control
2022-04-12 11:25:46 +02:00
Jonathan Rainville
666c865112 feat(chat): implement new getChats API for the backend
Fixes #4878 but new issues will be created to split the implementation
2022-04-01 15:53:49 -04:00
Sale Djenic
1bf5882f25 refactor(@desktop/general): remove interfaces for services
Fixes #5093
2022-03-23 09:00:57 +01:00
Jonathan Rainville
13b81134de fix(community): join community when request is accepted
Fixes #4991
2022-03-15 09:29:56 -04:00
Jonathan Rainville
aef8d0c4ab feat(community): enable choosing and changing community channel color
Fixes #4953
2022-03-11 16:01:22 -05:00
Jonathan Rainville
f0d9eb9b04 fix(community): fix deleting community chat more reliable
Fixes #4913

The problem was that we relied only on the status-go signals, so there was a delay, and also they are not as reliable as deleting them ourselves from the array and calling the event
2022-03-11 09:52:39 -05:00
Jonathan Rainville
be9d2f94e2 feat: enable emojis as channel icons
Fixes #4809
2022-03-08 15:15:25 -05:00
Jonathan Rainville
a51aee1683 fix(community): re-hook kick user from community
Fixes #2274
2022-02-24 17:04:56 -05:00
Jonathan Rainville
6c5594b576 fix(community): fix community edits not always working
Fixes #4842
2022-02-24 16:54:05 -05:00
Jonathan Rainville
bd69d88163 feat(communities): add category signal handling (add, delete and edit)
Fixes #4753
2022-02-24 16:54:05 -05:00
Jonathan Rainville
3985272037 fix(invitation): fix community invite not showing in 1-1 chats
Fixes #4851
2022-02-24 10:58:26 -05:00
Sale Djenic
6186bf9c8c fix(@desktop/general): app/os notifications
Fixes #4409
2022-02-21 22:01:19 +01:00
Jonathan Rainville
f27fd6ea61 fix(communities): fix invite link enabling joining twice
Fixes #4801
2022-02-21 09:43:43 -05:00
Jonathan Rainville
23d9e9f8e9 fix(communities): fix pending request to join when receiving new signals
Fixes #4816
2022-02-18 09:40:31 -05:00
Jonathan Rainville
16e7d16c8c feat(communities): re-implement community link unfurling
Fixes #4788
2022-02-14 17:03:41 -05:00
Patryk Osmaczko
ba7a6d5d34 style: remove trailing whitespaces 2022-02-09 11:16:23 +01:00
Richard Ramos
04e1db6b56 fix: chat reordering eventually not working 2022-02-08 14:26:07 -04:00
Richard Ramos
4cda8d8835 fix: code review 2022-02-08 14:26:07 -04:00
Richard Ramos
3fd10e7915 fix: community chat positions 2022-02-08 14:26:07 -04:00
Richard Ramos
f67ffde12c refactor(communities): edit categories 2022-02-07 18:29:13 -04:00
Anthony Laibe
56340bebd1 chores(@general): remove status-lib deps 2022-02-03 11:52:45 -05:00
Sale Djenic
aeed9303cd fix(@desktop/communities): community import has some issues
Fixes #4206
2022-02-03 16:14:15 +01:00
Sale Djenic
eb41dbe175 refactor(@desktop/general): repo cleaning
- all unused/unnecessary files remove
- `status-lib` references updated due to cleaning on that side
- necessary submodules added (those removed from status lib)
2022-02-01 11:52:33 +01:00
Jonathan Rainville
4f706e8b21 hotfix(community): fix missing function 2022-02-01 11:51:31 +01:00
Jonathan Rainville
e3a5c6bad3 fix channel missing a name when re-joining 2022-02-01 11:51:31 +01:00
Jonathan Rainville
f7694e2915 fix(communities): enable leaving and then re-joining a community
Fixes #4568
2022-02-01 11:51:31 +01:00
Richard Ramos
192a0c4d19 refactor(communities): create channel in specific category 2022-02-01 11:51:22 +01:00
Sale Djenic
a05a821f51 issues adding category fixed
- chats list maintained in the chat service gets updated form the right places now
- redundant mapping `Chat` to `ChatDto` is removed, since we already get all
necessary data for the chat, no need for additional mapping which may just
introduce new inconsistencies
- `findIndexById` proc updated so in case if there is no the chat we're searching
for in the list, we're returning `-1` instead of last index in the list
- `DelegateChoice` on the qml side updated to match new type value `Constants.chatType.category`
2022-02-01 11:51:00 +01:00
Richard Ramos
b67e97a05c feat(communities): create categories 2022-02-01 11:51:00 +01:00
Sale Djenic
7421967d96 fix(@desktop/chat-content): [base_bc] can't select a community channel
Fixes #4538
2022-02-01 11:50:32 +01:00
Anthony Laibe
2e3d252fec fix(@communities): create channel
fixes #4565
2022-02-01 11:50:17 +01:00
Jonathan Rainville
518b7e455e fix(userlist): member added to userlist on approve and duplicate member
Fixes #4523 and #4542
2022-02-01 11:50:17 +01:00
Jonathan Rainville
bd2bb8952a refactor(community): move community specific functions to chat_section
Fixes #4489
2022-02-01 11:50:02 +01:00
Jonathan Rainville
3e339ea094 refactor(community): add admin member request feature
Fixes #4442
2022-02-01 11:50:01 +01:00
Khushboo Mehta
59ec288e7a fix(@desktop/community): Updates to a joined community channel doesnr reflect on the UI
fixes #4505
2022-02-01 11:49:55 +01:00
Khushboo Mehta
2ff5ce7fc2 fix(@desktop/community): added option to delete community channel
fixes #4415
2022-02-01 11:49:47 +01:00
Jonathan Rainville
a027ec98f8 refactor(community): add member list model and hook it + updates to comm 2022-02-01 11:49:34 +01:00
Sale Djenic
7439b79039 chore(@desktop/general): signal names aligned
When we started with refactor we had to somehow separate "new"
and "old" signals that's why most of signals had prefix "new-", now
since we don't collide any more with "old" signal names (since we
removed all old code) we are free to sort out that signals naming,
what this commit does.
2022-02-01 11:49:14 +01:00
Sale Djenic
4d042f80aa refactor(@desktop/general): dependencies to the status-lib removed
Fixes #4395
2022-02-01 11:48:51 +01:00
Jonathan Rainville
9fc9f698d9 refactor(community): hook invite user and fix community context menu 2022-02-01 11:48:43 +01:00
Jonathan Rainville
3678b3af9b refactor(community): hook edit community feature 2022-02-01 11:48:22 +01:00
Jonathan Rainville
42bb0c842d refactor(Communities): refactor communities front-end 2022-02-01 11:48:13 +01:00
Sale Djenic
807039ad61 refactor(@desktop/chat-community): ChatContextMenuView component updated
- admin flag exposed to qml for chat/channel
- `CreateChannelPopup` updated
- `createPopup` function added to the `Global` singleton
- `PinnedMessagesPopup` component moved to `AppMain` and shared
among components beneath
2022-02-01 11:46:24 +01:00
Jonathan Rainville
d5a3ead0b6 refactor(community): add all community function in the backend 2022-02-01 11:44:42 +01:00
Jonathan Rainville
0388688e9e refactor(community): add join community functionnality 2022-02-01 11:44:38 +01:00
Jonathan Rainville
129266497d refactor(communities): add communities module to show comm list 2022-02-01 11:43:40 +01:00