Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions lib/widgets/messages/message_invite_request.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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''';
}
Expand Down