diff --git a/lib/widgets/messages/message_invite_request.dart b/lib/widgets/messages/message_invite_request.dart index 21ccc95..0431b99 100644 --- a/lib/widgets/messages/message_invite_request.dart +++ b/lib/widgets/messages/message_invite_request.dart @@ -25,9 +25,20 @@ class MessageInviteRequest extends StatelessWidget { } else if (fromSelf) { //Forwarded invite request text = '''Forwarded invite request from "${inviteInfo.usernameToInvite}" to session "${inviteInfo.forSessionName}"'''; + if(inviteInfo.response == "SendInvite") { + text = '''Granted "${inviteInfo.usernameToInvite}" invite to session "${inviteInfo.forSessionName}"'''; + } + if(inviteInfo.response == "AddAsContact") { + text = '''Adding ${inviteInfo.usernameToInvite} as a contact of the headless"'''; + } } else if (inviteInfo.forSessionName != null) { - //Another user requested an invite from you. - text = '''${inviteInfo.usernameToInvite} would like to join you in "${inviteInfo.forSessionName}"'''; + if (inviteInfo.requestingFromUsername != null) { + //User wants to invite user2 to world + text = '''"${inviteInfo.requestingFromUsername}" wants to invite "${inviteInfo.usernameToInvite}" to "${inviteInfo.forSessionName}"'''; + } else { + //Another user requested an invite from you. + text = '''${inviteInfo.usernameToInvite} would like to join you in "${inviteInfo.forSessionName}"'''; + } } else { text = '''${inviteInfo.usernameToInvite} would like to join you'''; }