From f269516704b8bcc26e17e3e4286a86071110d7fb Mon Sep 17 00:00:00 2001 From: Delta Date: Thu, 17 Apr 2025 23:33:38 -0700 Subject: [PATCH 1/2] Granted and Adding contact messages --- lib/widgets/messages/message_invite_request.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/widgets/messages/message_invite_request.dart b/lib/widgets/messages/message_invite_request.dart index 21ccc95..3d0c424 100644 --- a/lib/widgets/messages/message_invite_request.dart +++ b/lib/widgets/messages/message_invite_request.dart @@ -25,6 +25,12 @@ 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}"'''; From 3a69464de0b4705141d606115c3e18e08a091ee7 Mon Sep 17 00:00:00 2001 From: Delta Date: Thu, 17 Apr 2025 23:34:22 -0700 Subject: [PATCH 2/2] User invite another user to session message --- lib/widgets/messages/message_invite_request.dart | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/widgets/messages/message_invite_request.dart b/lib/widgets/messages/message_invite_request.dart index 3d0c424..0431b99 100644 --- a/lib/widgets/messages/message_invite_request.dart +++ b/lib/widgets/messages/message_invite_request.dart @@ -32,8 +32,13 @@ class MessageInviteRequest extends StatelessWidget { 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'''; }