status-desktop/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents
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
..
TransactionComponents chore: run translation scripts 2021-02-18 15:23:58 -05:00
AudioPlayer.qml feat: play audio messages 2020-07-30 13:49:50 -04:00
ChannelIdentifier.qml fix: kick and re-invite user to group chat 2021-06-11 11:03:16 -04:00
ChatButtons.qml fixes 2021-05-26 12:12:05 -04:00
ChatImage.qml fix: fix chat height being too high in compact mode 2020-10-02 12:48:02 -04:00
ChatReply.qml feat: implement redesign of message replies 2021-04-29 12:35:59 -04:00
ChatText.qml Update ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/ChatText.qml 2021-05-31 10:29:10 -04:00
ChatTime.qml feat: introduce global settings 2021-04-19 13:53:14 +02:00
CompactMessage.qml fixes 2021-05-26 12:12:05 -04:00
DateGroup.qml fix: date label not showing correctly 2021-04-13 14:40:44 -04:00
EmojiReactions.qml fix: show emoji in reaction tooltip 2021-05-14 12:17:48 -04:00
ImageLoader.qml feat: implement redesign of message replies 2021-04-29 12:35:59 -04:00
InvitationBubble.qml fix: change invite title 2021-06-10 19:33:03 -04:00
LinksMessage.qml force refetching previews when preview whitelist changes 2021-05-03 15:03:03 -04:00
MessageBorder.qml feat: whitelist gifs (no url extension needed) 2020-12-21 14:14:32 -05:00
MessageMouseArea.qml fix(CompactMessage): fix message hover getting stuck 2021-04-21 18:05:42 -04:00
NormalMessage.qml fix: date label not showing correctly 2021-04-13 14:40:44 -04:00
RectangleCorner.qml feat: make RectangleCorner a component and show images in compact 2020-07-16 11:49:13 -04:00
Retry.qml feat: allow users to change font size for chat messages 2020-11-25 14:41:29 +01:00
SentMessage.qml feat: show time and sent status on the image itself 2021-01-14 16:02:27 -05:00
StatusUpdate.qml feat: introduce Utils.formatDateTime 2021-01-04 15:16:37 -05:00
Sticker.qml feat: implement redesign of message replies 2021-04-29 12:35:59 -04:00
TransactionBubble.qml chore: run translation scripts 2021-02-18 15:23:58 -05:00
UserImage.qml feat: implement redesign of message replies 2021-04-29 12:35:59 -04:00
UsernameLabel.qml feat(community): fetch community info from link 2021-05-03 14:36:37 -04:00
qmldir feat: refactor Message and add Compact message type 2020-07-16 10:29:29 -04:00