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

refactor(messages): create a helper MessageItem init function #17008

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

jrainville
Copy link
Member

Fixes #14039

Creates a util function to create MessageItems.

Based on top of #16894 because it modified the initMessageItem function so I wanted to avoid conflicts

@jrainville jrainville requested a review from a team as a code owner December 23, 2024 20:09
@jrainville jrainville requested review from noeliaSD, Cuteivist, igor-sirotin and osmaczko and removed request for a team and noeliaSD December 23, 2024 20:09
@status-im-auto
Copy link
Member

status-im-auto commented Dec 23, 2024

Jenkins Builds

Click to see older builds (14)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 9880cb1 #1 2024-12-23 20:16:12 ~6 min tests/nim 📄log
✔️ 9880cb1 #1 2024-12-23 20:16:20 ~6 min macos/aarch64 🍎dmg
9880cb1 #1 2024-12-23 20:22:00 ~12 min tests/ui 📄log
✔️ 9880cb1 #1 2024-12-23 20:26:07 ~16 min macos/x86_64 🍎dmg
✔️ 9880cb1 #1 2024-12-23 20:26:39 ~16 min linux-nix/x86_64 📦tgz
✔️ 9880cb1 #1 2024-12-23 20:29:18 ~19 min linux/x86_64 📦tgz
✔️ 9880cb1 #1 2024-12-23 20:35:54 ~26 min windows/x86_64 💿exe
✔️ 664e06e #3 2025-01-06 15:24:44 ~7 min macos/aarch64 🍎dmg
✔️ 664e06e #3 2025-01-06 15:27:18 ~9 min tests/nim 📄log
✔️ 664e06e #3 2025-01-06 15:35:38 ~18 min macos/x86_64 🍎dmg
✔️ 664e06e #3 2025-01-06 15:35:49 ~18 min linux-nix/x86_64 📦tgz
✔️ 664e06e #3 2025-01-06 15:37:42 ~20 min tests/ui 📄log
✔️ 664e06e #3 2025-01-06 15:40:20 ~22 min linux/x86_64 📦tgz
✔️ 664e06e #3 2025-01-06 15:46:21 ~28 min windows/x86_64 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 4c18af4 #4 2025-01-06 17:12:53 ~5 min macos/aarch64 🍎dmg
✔️ 4c18af4 #4 2025-01-06 17:14:55 ~7 min tests/nim 📄log
✔️ 4c18af4 #4 2025-01-06 17:20:17 ~12 min tests/ui 📄log
✔️ 4c18af4 #4 2025-01-06 17:20:51 ~13 min macos/x86_64 🍎dmg
✔️ 4c18af4 #4 2025-01-06 17:21:38 ~13 min linux-nix/x86_64 📦tgz
✔️ 4c18af4 #4 2025-01-06 17:28:12 ~20 min linux/x86_64 📦tgz
✔️ 4c18af4 #4 2025-01-06 17:31:55 ~24 min windows/x86_64 💿exe
✔️ 4c18af4 #5 2025-01-07 14:26:17 ~4 min macos/aarch64 🍎dmg
✔️ 4c18af4 #5 2025-01-07 14:29:10 ~7 min tests/nim 📄log
✔️ 4c18af4 #5 2025-01-07 14:33:19 ~11 min macos/x86_64 🍎dmg
✔️ 4c18af4 #5 2025-01-07 14:34:04 ~12 min tests/ui 📄log
✔️ 4c18af4 #5 2025-01-07 14:34:53 ~13 min linux-nix/x86_64 📦tgz
✔️ 4c18af4 #5 2025-01-07 14:37:33 ~15 min linux/x86_64 📦tgz
✔️ 4c18af4 #5 2025-01-07 14:45:00 ~23 min windows/x86_64 💿exe
✔️ d45dc96 #6 2025-01-08 16:59:17 ~5 min macos/aarch64 🍎dmg
✔️ d45dc96 #6 2025-01-08 17:03:13 ~9 min tests/nim 📄log
✔️ d45dc96 #6 2025-01-08 17:05:39 ~11 min tests/ui 📄log
✔️ d45dc96 #6 2025-01-08 17:06:52 ~12 min macos/x86_64 🍎dmg
✔️ d45dc96 #6 2025-01-08 17:08:51 ~15 min linux-nix/x86_64 📦tgz
✔️ d45dc96 #6 2025-01-08 17:11:40 ~17 min linux/x86_64 📦tgz
✔️ d45dc96 #6 2025-01-08 17:20:01 ~26 min windows/x86_64 💿exe

@@ -7,7 +7,7 @@ import ../item as chat_item
import ./chat_details
import ../../../shared_models/message_model as pinned_msg_model
import ../../../shared_models/message_item as pinned_msg_item
import ../../../shared_models/message_transaction_parameters_item
# import ../../../shared_models/message_transaction_parameters_item
Copy link
Contributor

Choose a reason for hiding this comment

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

leftover?

@jrainville jrainville force-pushed the refactor/single-message-item-creation-proc branch from 9880cb1 to 72bfa67 Compare January 6, 2025 15:16
@jrainville jrainville requested review from micieslak, a team, caybro and alexjba as code owners January 6, 2025 15:16
@jrainville jrainville requested review from virginiabalducci and removed request for a team January 6, 2025 15:16
@jrainville jrainville force-pushed the fix/old-pins-looking-normal branch from 666b15b to c71a9ef Compare January 6, 2025 15:16
@jrainville jrainville force-pushed the refactor/single-message-item-creation-proc branch from 72bfa67 to 664e06e Compare January 6, 2025 15:17
Copy link
Member

@caybro caybro left a comment

Choose a reason for hiding this comment

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

Nice cleanup otherwise

@siddarthkay siddarthkay removed the request for review from a team January 6, 2025 16:24
@jrainville jrainville force-pushed the fix/old-pins-looking-normal branch from c71a9ef to cdeaf56 Compare January 6, 2025 16:55
@jrainville jrainville force-pushed the refactor/single-message-item-creation-proc branch from 664e06e to 4c18af4 Compare January 6, 2025 17:07
@jrainville
Copy link
Member Author

@alexjba you are the randomly selected tester. In this case, just check that the messages work nicely everywhere and will all types of messages

There were 5 items in your list. Here they are in random order:

alexjba
igor-sirotin
osmaczko
caybro
micieslak

Base automatically changed from fix/old-pins-looking-normal to master January 7, 2025 14:21
Copy link
Contributor

@osmaczko osmaczko left a comment

Choose a reason for hiding this comment

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

🧹

Copy link
Contributor

@alexjba alexjba left a comment

Choose a reason for hiding this comment

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

LGTM! Tested 👍

Fixes #14039

Creates a util function to create MessageItems.
@jrainville jrainville force-pushed the refactor/single-message-item-creation-proc branch from 4c18af4 to d45dc96 Compare January 8, 2025 16:53
@jrainville jrainville merged commit febe088 into master Jan 8, 2025
9 checks passed
@jrainville jrainville deleted the refactor/single-message-item-creation-proc branch January 8, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove code duplicate of creating message item
6 participants