Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mutual state update messages #11178

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

MishkaRogachev
Copy link
Contributor

@MishkaRogachev MishkaRogachev commented Jun 20, 2023

Close #11121
Requires status-im/status-go#3640

See the desired flow in the status-go PR

What does the PR do

  • Don't activate chat until CR is accepted
  • Don't delete sent messages
  • Change added messages to accepted
  • Fix CR and mutual update messages order
  • Remove @ from system messages

Affected areas

Chat, Contacts, ActivityCenter

Screenshot of functionality (including design for comparison)

Screenshot 2023-07-10 at 13 29 08 Screenshot 2023-07-10 at 13 28 58

@status-im-auto
Copy link
Member

status-im-auto commented Jun 20, 2023

Jenkins Builds

Click to see older builds (132)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ c80290d #1 2023-06-20 11:58:27 ~8 min macos/aarch64 🍎dmg
✔️ c80290d #1 2023-06-20 12:00:04 ~10 min macos/x86_64 🍎dmg
✔️ c80290d #1 2023-06-20 12:05:45 ~15 min tests/imports 📄log
✔️ c80290d #1 2023-06-20 12:06:54 ~16 min tests/nim 📄log
✔️ c80290d #1 2023-06-20 12:13:25 ~23 min linux/x86_64 📦tgz
✔️ c80290d #1 2023-06-20 12:25:35 ~35 min windows/x86_64 💿exe
✔️ c80290d #1 2023-06-20 12:41:29 ~51 min tests/e2e 📄log
✔️ 16fc8ad #2 2023-06-20 13:24:52 ~5 min macos/aarch64 🍎dmg
✔️ 16fc8ad #2 2023-06-20 13:25:36 ~5 min tests/imports 📄log
✔️ 16fc8ad #2 2023-06-20 13:28:56 ~9 min macos/x86_64 🍎dmg
✔️ 16fc8ad #2 2023-06-20 13:30:35 ~10 min tests/nim 📄log
✔️ 16fc8ad #2 2023-06-20 13:36:13 ~16 min linux/x86_64 📦tgz
✔️ 16fc8ad #2 2023-06-20 13:55:57 ~36 min windows/x86_64 💿exe
✔️ 16fc8ad #2 2023-06-20 13:59:20 ~39 min tests/e2e 📄log
✔️ d140267 #3 2023-06-20 14:48:29 ~4 min macos/aarch64 🍎dmg
✔️ d140267 #3 2023-06-20 14:51:45 ~8 min macos/x86_64 🍎dmg
✔️ d140267 #3 2023-06-20 14:52:52 ~9 min tests/imports 📄log
✖️ d140267 #3 2023-06-20 14:54:54 ~11 min tests/e2e 📄log
✔️ d140267 #3 2023-06-20 14:55:02 ~11 min tests/nim 📄log
✔️ d140267 #3 2023-06-20 15:00:03 ~16 min linux/x86_64 📦tgz
✔️ d140267 #3 2023-06-20 15:09:02 ~25 min windows/x86_64 💿exe
✔️ 95a55db #4 2023-06-26 09:50:34 ~4 min macos/aarch64 🍎dmg
✔️ 95a55db #4 2023-06-26 09:55:10 ~9 min tests/imports 📄log
✔️ 95a55db #4 2023-06-26 09:56:59 ~11 min tests/nim 📄log
✔️ 95a55db #4 2023-06-26 09:59:11 ~13 min macos/x86_64 🍎dmg
✔️ 95a55db #4 2023-06-26 10:05:23 ~19 min linux/x86_64 📦tgz
✔️ 95a55db #4 2023-06-26 10:13:24 ~27 min windows/x86_64 💿exe
✔️ 95a55db #4 2023-06-26 10:33:49 ~48 min tests/e2e 📄log
✔️ 1e08d61 #5 2023-07-04 08:59:01 ~4 min tests/imports 📄log
✔️ 1e08d61 #5 2023-07-04 09:00:59 ~6 min tests/nim 📄log
✔️ 1e08d61 #5 2023-07-04 09:03:10 ~9 min macos/aarch64 🍎dmg
✔️ 1e08d61 #5 2023-07-04 09:04:17 ~10 min macos/x86_64 🍎dmg
✔️ 1e08d61 #5 2023-07-04 09:24:11 ~29 min windows/x86_64 💿exe
✔️ 1e08d61 #5 2023-07-04 09:40:49 ~46 min tests/e2e 📄log
✔️ 1295c91 #6 2023-07-05 13:05:09 ~15 min tests/nim 📄log
✔️ 1295c91 #6 2023-07-05 13:05:34 ~15 min tests/imports 📄log
✔️ 1295c91 #6 2023-07-05 13:06:48 ~16 min macos/x86_64 🍎dmg
✔️ 1295c91 #6 2023-07-05 13:12:16 ~22 min linux/x86_64 📦tgz
✔️ 1295c91 #6 2023-07-05 13:19:10 ~29 min windows/x86_64 💿exe
✔️ 1295c91 #6 2023-07-05 13:28:49 ~38 min macos/aarch64 🍎dmg
✔️ 1295c91 #6 2023-07-05 13:36:48 ~46 min tests/e2e 📄log
✔️ 5b6c64f #7 2023-07-06 11:25:42 ~5 min macos/aarch64 🍎dmg
✔️ 5b6c64f #7 2023-07-06 11:30:08 ~9 min macos/x86_64 🍎dmg
✔️ 5b6c64f #7 2023-07-06 11:34:17 ~13 min tests/imports 📄log
✔️ 5b6c64f #7 2023-07-06 11:35:54 ~15 min tests/nim 📄log
✔️ 5b6c64f #7 2023-07-06 11:50:45 ~30 min windows/x86_64 💿exe
✔️ 5b6c64f #7 2023-07-06 12:06:41 ~46 min tests/e2e 📄log
✔️ f3c9be3 #8 2023-07-07 09:30:16 ~4 min tests/imports 📄log
✔️ f3c9be3 #8 2023-07-07 09:30:50 ~5 min macos/aarch64 🍎dmg
✔️ f3c9be3 #8 2023-07-07 09:31:03 ~5 min tests/nim 📄log
✔️ f3c9be3 #8 2023-07-07 09:34:44 ~9 min macos/x86_64 🍎dmg
f3c9be3 #9 2023-07-07 09:40:37 ~14 min linux/x86_64 📄log
✔️ f3c9be3 #8 2023-07-07 09:54:25 ~28 min windows/x86_64 💿exe
✔️ f3c9be3 #8 2023-07-07 09:59:41 ~34 min tests/e2e 📄log
✔️ 54057cb #9 2023-07-07 11:24:11 ~4 min tests/imports 📄log
✔️ 54057cb #9 2023-07-07 11:24:35 ~5 min tests/nim 📄log
✔️ 54057cb #9 2023-07-07 11:24:44 ~5 min macos/aarch64 🍎dmg
✔️ 54057cb #9 2023-07-07 11:28:33 ~9 min macos/x86_64 🍎dmg
54057cb #10 2023-07-07 11:33:04 ~13 min linux/x86_64 📄log
✔️ 54057cb #9 2023-07-07 11:44:01 ~24 min windows/x86_64 💿exe
✔️ 54057cb #9 2023-07-07 11:53:02 ~33 min tests/e2e 📄log
✔️ a8b9e30 #10 2023-07-07 14:11:37 ~4 min tests/imports 📄log
✔️ a8b9e30 #10 2023-07-07 14:12:39 ~5 min tests/nim 📄log
✔️ a8b9e30 #10 2023-07-07 14:13:14 ~6 min macos/aarch64 🍎dmg
✔️ a8b9e30 #10 2023-07-07 14:16:45 ~9 min macos/x86_64 🍎dmg
✔️ a8b9e30 #11 2023-07-07 14:22:15 ~15 min linux/x86_64 📦tgz
✔️ a8b9e30 #10 2023-07-07 14:33:09 ~26 min windows/x86_64 💿exe
✔️ a8b9e30 #10 2023-07-07 14:42:43 ~35 min tests/e2e 📄log
✔️ b84c176 #11 2023-07-07 16:58:02 ~4 min tests/imports 📄log
✔️ b84c176 #11 2023-07-07 16:58:15 ~4 min tests/nim 📄log
✔️ b84c176 #11 2023-07-07 16:58:38 ~5 min macos/aarch64 🍎dmg
✔️ b84c176 #11 2023-07-07 17:01:30 ~8 min macos/x86_64 🍎dmg
✔️ b84c176 #12 2023-07-07 17:06:21 ~13 min linux/x86_64 📦tgz
✔️ b84c176 #11 2023-07-07 17:16:56 ~23 min windows/x86_64 💿exe
✔️ b84c176 #11 2023-07-07 17:31:02 ~37 min tests/e2e 📄log
✔️ e830be2 #12 2023-07-10 08:27:43 ~5 min tests/imports 📄log
✔️ e830be2 #12 2023-07-10 08:28:05 ~5 min tests/nim 📄log
✔️ e830be2 #12 2023-07-10 08:28:10 ~5 min macos/aarch64 🍎dmg
✔️ e830be2 #12 2023-07-10 08:31:00 ~8 min macos/x86_64 🍎dmg
✔️ e830be2 #13 2023-07-10 08:37:47 ~15 min linux/x86_64 📦tgz
✔️ e830be2 #12 2023-07-10 08:51:21 ~28 min windows/x86_64 💿exe
✖️ e830be2 #12 2023-07-10 08:58:03 ~35 min tests/e2e 📄log
✔️ 9c1b144 #13 2023-07-10 09:23:29 ~4 min tests/imports 📄log
✔️ 9c1b144 #13 2023-07-10 09:23:53 ~5 min tests/nim 📄log
✔️ 9c1b144 #13 2023-07-10 09:24:08 ~5 min macos/aarch64 🍎dmg
✔️ 9c1b144 #13 2023-07-10 09:27:51 ~9 min macos/x86_64 🍎dmg
✔️ 9c1b144 #14 2023-07-10 09:31:49 ~13 min linux/x86_64 📦tgz
✔️ 9c1b144 #13 2023-07-10 09:43:03 ~24 min windows/x86_64 💿exe
✔️ 24feafc #14 2023-07-10 09:56:36 ~5 min tests/imports 📄log
✔️ 24feafc #14 2023-07-10 09:56:37 ~5 min tests/nim 📄log
✔️ 24feafc #14 2023-07-10 10:03:35 ~12 min macos/x86_64 🍎dmg
✔️ 24feafc #15 2023-07-10 10:04:56 ~13 min linux/x86_64 📦tgz
✔️ 24feafc #14 2023-07-10 10:10:18 ~18 min macos/aarch64 🍎dmg
✔️ 24feafc #14 2023-07-10 10:16:00 ~24 min windows/x86_64 💿exe
✖️ 24feafc #14 2023-07-10 10:30:28 ~39 min tests/e2e 📄log
c3daf41 #15 2023-07-11 13:10:00 ~5 min tests/imports 📄log
✔️ c3daf41 #15 2023-07-11 13:10:39 ~5 min tests/nim 📄log
✔️ c3daf41 #15 2023-07-11 13:13:17 ~8 min macos/x86_64 🍎dmg
8979343 #16 2023-07-11 13:19:34 ~4 min tests/imports 📄log
✔️ 8979343 #16 2023-07-11 13:20:09 ~5 min macos/aarch64 🍎dmg
✔️ 8979343 #16 2023-07-11 13:21:18 ~6 min tests/nim 📄log
✔️ 8979343 #16 2023-07-11 13:22:12 ~7 min macos/x86_64 🍎dmg
✔️ 56b6634 #17 2023-07-11 13:31:42 ~4 min macos/aarch64 🍎dmg
✔️ 56b6634 #17 2023-07-11 13:31:49 ~5 min tests/imports 📄log
✔️ 56b6634 #17 2023-07-11 13:32:49 ~6 min tests/nim 📄log
✔️ 56b6634 #17 2023-07-11 13:34:45 ~7 min macos/x86_64 🍎dmg
✔️ 66c7a63 #18 2023-07-11 13:56:02 ~4 min tests/imports 📄log
✔️ 66c7a63 #18 2023-07-11 13:56:10 ~5 min macos/aarch64 🍎dmg
✔️ 66c7a63 #18 2023-07-11 13:56:46 ~5 min tests/nim 📄log
✔️ 66c7a63 #18 2023-07-11 13:58:40 ~7 min macos/x86_64 🍎dmg
✔️ 66c7a63 #19 2023-07-11 14:07:06 ~16 min linux/x86_64 📦tgz
✔️ 66c7a63 #18 2023-07-11 14:17:49 ~26 min windows/x86_64 💿exe
✖️ 66c7a63 #18 2023-07-11 14:33:58 ~42 min tests/e2e 📄log
✔️ f24297e #19 2023-07-12 10:35:16 ~4 min tests/imports 📄log
✔️ f24297e #19 2023-07-12 10:36:24 ~6 min macos/aarch64 🍎dmg
✔️ f24297e #19 2023-07-12 10:36:48 ~6 min tests/nim 📄log
✔️ f24297e #19 2023-07-12 10:38:44 ~8 min macos/x86_64 🍎dmg
✔️ f24297e #20 2023-07-12 10:47:49 ~17 min linux/x86_64 📦tgz
✔️ 689814f #20 2023-07-12 10:54:26 ~4 min tests/imports 📄log
✔️ 689814f #20 2023-07-12 10:54:57 ~5 min macos/aarch64 🍎dmg
✔️ 689814f #20 2023-07-12 10:55:34 ~5 min tests/nim 📄log
✔️ 689814f #20 2023-07-12 10:57:16 ~7 min macos/x86_64 🍎dmg
✔️ 689814f #21 2023-07-12 11:03:55 ~14 min linux/x86_64 📦tgz
✔️ 689814f #20 2023-07-12 11:18:04 ~28 min windows/x86_64 💿exe
✔️ 689814f #20 2023-07-12 11:24:29 ~34 min tests/e2e 📄log
✔️ 9d6376f #21 2023-07-12 13:26:38 ~4 min tests/imports 📄log
✔️ 9d6376f #21 2023-07-12 13:26:52 ~5 min macos/aarch64 🍎dmg
✔️ 9d6376f #21 2023-07-12 13:27:20 ~5 min tests/nim 📄log
✔️ 9d6376f #21 2023-07-12 13:29:17 ~7 min macos/x86_64 🍎dmg
✔️ 9d6376f #22 2023-07-12 13:34:47 ~13 min linux/x86_64 📦tgz
✔️ 9d6376f #21 2023-07-12 13:47:09 ~25 min windows/x86_64 💿exe
✔️ 9d6376f #21 2023-07-12 13:54:52 ~33 min tests/e2e 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ f98aa93 #22 2023-07-12 14:17:55 ~5 min tests/nim 📄log
✔️ f98aa93 #22 2023-07-12 14:17:58 ~5 min tests/imports 📄log
✔️ f98aa93 #22 2023-07-12 14:19:22 ~6 min macos/aarch64 🍎dmg
✔️ f98aa93 #22 2023-07-12 14:20:03 ~7 min macos/x86_64 🍎dmg
✔️ f98aa93 #23 2023-07-12 14:29:04 ~16 min linux/x86_64 📦tgz
✔️ f98aa93 #22 2023-07-12 14:35:58 ~23 min windows/x86_64 💿exe
✔️ f98aa93 #22 2023-07-12 14:44:58 ~32 min tests/e2e 📄log
✔️ c2c6116 #23 2023-07-12 20:01:14 ~4 min tests/imports 📄log
✔️ c2c6116 #23 2023-07-12 20:01:58 ~5 min tests/nim 📄log
✔️ c2c6116 #23 2023-07-12 20:03:52 ~7 min macos/x86_64 🍎dmg
✔️ c2c6116 #23 2023-07-12 20:11:55 ~15 min macos/aarch64 🍎dmg
✔️ c2c6116 #23 2023-07-12 20:19:55 ~23 min windows/x86_64 💿exe
✔️ c2c6116 #23 2023-07-12 20:28:50 ~32 min tests/e2e 📄log
✔️ c2c6116 #25 2023-07-12 20:41:31 ~13 min linux/x86_64 📦tgz

@MishkaRogachev MishkaRogachev force-pushed the fix/issue-11121-mutual-state-messages branch 2 times, most recently from 16fc8ad to d140267 Compare June 20, 2023 14:43
@MishkaRogachev MishkaRogachev marked this pull request as draft June 21, 2023 08:51
@MishkaRogachev MishkaRogachev force-pushed the fix/issue-11121-mutual-state-messages branch from d140267 to 95a55db Compare June 26, 2023 09:45
@MishkaRogachev MishkaRogachev force-pushed the fix/issue-11121-mutual-state-messages branch 10 times, most recently from 9c1b144 to 24feafc Compare July 10, 2023 09:51
@MishkaRogachev MishkaRogachev marked this pull request as ready for review July 10, 2023 14:44
@MishkaRogachev MishkaRogachev force-pushed the fix/issue-11121-mutual-state-messages branch 3 times, most recently from 8979343 to 56b6634 Compare July 11, 2023 13:26
@@ -19,7 +19,9 @@ type
ContactIdentityVerification = 13
# Local only
SystemMessagePinnedMessage = 14
SystemMessageMutualStateUpdate = 15
SystemMessageMutualEventSent = 15
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Different message types needed by mobile, see status-im/status-mobile#16254

@MishkaRogachev MishkaRogachev force-pushed the fix/issue-11121-mutual-state-messages branch 3 times, most recently from f24297e to 689814f Compare July 12, 2023 10:49
@lukaszso lukaszso self-requested a review July 12, 2023 11:02
@MishkaRogachev
Copy link
Contributor Author

@MishkaRogachev MishkaRogachev force-pushed the fix/issue-11121-mutual-state-messages branch 2 times, most recently from 9d6376f to f98aa93 Compare July 12, 2023 14:12
Copy link
Contributor

@igor-sirotin igor-sirotin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, looks great!
I suppose this might also fix #11113?

qsTr("%1 sent you a contact request").arg(displayName)
case Constants.messageContentType.systemMessageMutualEventAccepted:
return root.amISender ?
qsTr("You accepted %1's contact request").arg(displayName) :
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if localisation will work in the right way for %1's.
cc @caybro

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe arg() is applied after qsTr(), so any translation containing %1 should work, like Přijali jste žádost o kontakt od %1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mutual contacts - 1on1 chat view should be created until mutual contact request is accepted
5 participants