status-desktop/ui/app/AppLayouts/Chat/components
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
..
ChannelContextMenu.qml fix: kick and re-invite user to group chat 2021-06-11 11:03:16 -04:00
ChannelIcon.qml fix: fix dark theme colors for chat and profile 2020-07-23 15:59:18 -04:00
ChooseBrowserPopup.qml chore: run translation scripts 2021-02-18 15:23:58 -05:00
Contact.qml refactor: redesign PrivateChatPopup to match new designs 2021-02-10 13:39:25 -05:00
ContactList.qml wip community invitatations and more 2021-01-11 13:57:35 -05:00
ContactRequest.qml feat(Activity center): add placeholder activity center 2021-05-31 15:54:18 -04:00
ContactRequestsPopup.qml disable accept and decline all buttons on empty list and join on approve 2021-05-28 13:31:33 -04:00
EmojiReaction.qml feat: use StatusTooltip for emoji reaction list 2021-02-08 16:48:14 -05:00
FetchMoreMessages.qml feat: add fetch more menu item in the chat drop down menu 2020-11-26 11:20:25 -05:00
GroupChatPopup.qml feat: show community context menu on Community button 2021-03-30 15:53:32 -04:00
GroupInfoPopup.qml fix: kick and re-invite user to group chat 2021-06-11 11:03:16 -04:00
LeftTabBottomButtons.qml re-disable experimental features 2021-04-23 07:44:55 -04:00
LoadingAnimation.qml refactor: introduce LoadingAnimation for reusability 2021-02-08 17:38:25 -05:00
MessageContextMenu.qml fixes 2021-05-26 12:12:05 -04:00
NicknamePopup.qml refactor: replace StyledButton with StatusButton 2021-02-02 10:57:42 +01:00
PinnedMessagesPopup.qml fixes 2021-05-26 12:12:05 -04:00
PrivateChatPopup.qml feat: use new API for joining/leaving chats 2021-05-25 14:47:13 -04:00
ProfilePopup.qml feat: use new API for joining/leaving chats 2021-05-25 14:47:13 -04:00
PublicChatPopup.qml feat: use new API for joining/leaving chats 2021-05-25 14:47:13 -04:00
RenameGroupPopup.qml refactor: replace StyledButton with StatusButton 2021-02-02 10:57:42 +01:00
SuggestedChannel.qml feat: use new API for joining/leaving chats 2021-05-25 14:47:13 -04:00
SuggestedChannels.qml fix: fix color and warning 2020-09-23 17:19:43 -04:00
emojiList.js feat: categorize emojis in the menu and add category buttons 2020-07-30 10:04:08 -04:00
qmldir feat: add input to search and use ENS for community invite 2021-03-31 16:25:24 -04:00