Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(images): Display image placeholder when image from album not loaded #10203

Merged
merged 1 commit into from
Apr 7, 2023

Conversation

borismelnik
Copy link
Contributor

@borismelnik borismelnik commented Apr 5, 2023

Fixes: #9990

What does the PR do

Display image placeholder.
Unfortunately, old versions where album was received can't display images anymore. But I will try to add some migration to status which add albumCount for old albums.

Affected areas

Message view

StatusQ checklist

  • add documentation if necessary (new component, new feature)
  • update sandbox app
    • in case of new component, add new component page
    • in case of new features, add variation to existing component page
    • nice to have: add it to the demo application as well
  • test changes in both light and dark theme?

Screenshot of functionality (including design for comparison)

Снимок экрана 2023-04-05 в 19 12 17

@borismelnik borismelnik requested review from glitchminer, a team, iurimatias, mprakhov and jrainville and removed request for a team April 5, 2023 16:16
@status-im-auto
Copy link
Member

status-im-auto commented Apr 5, 2023

Jenkins Builds

Click to see older builds (6)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 5eeaae6 #1 2023-04-05 16:23:27 ~6 min tests-nim 📄log
✔️ 5eeaae6 #1 2023-04-05 16:23:33 ~6 min imports 📄log
✔️ 5eeaae6 #1 2023-04-05 16:26:19 ~9 min macos 🍎dmg
✔️ 5eeaae6 #1 2023-04-05 16:28:50 ~12 min linux 📦tgz
✔️ 5eeaae6 #1 2023-04-05 16:33:06 ~16 min linux-e2e 📄log
✔️ 5eeaae6 #1 2023-04-05 16:51:25 ~34 min windows 💿exe
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ b2b7936 #2 2023-04-05 17:40:46 ~5 min imports 📄log
✔️ b2b7936 #2 2023-04-05 17:40:59 ~6 min tests-nim 📄log
✔️ b2b7936 #2 2023-04-05 17:43:22 ~8 min macos 🍎dmg
✔️ b2b7936 #2 2023-04-05 17:45:19 ~10 min linux 📦tgz
✔️ b2b7936 #2 2023-04-05 17:51:24 ~16 min linux-e2e 📄log
✔️ b2b7936 #2 2023-04-05 18:01:47 ~26 min windows 💿exe
✔️ db10208 #3 2023-04-07 11:38:32 ~5 min tests-nim 📄log
✔️ db10208 #3 2023-04-07 11:38:53 ~6 min imports 📄log
✔️ db10208 #3 2023-04-07 11:41:36 ~8 min macos 🍎dmg
✔️ db10208 #3 2023-04-07 11:45:16 ~12 min linux 📦tgz
✔️ db10208 #3 2023-04-07 11:50:00 ~17 min linux-e2e 📄log
✔️ db10208 #3 2023-04-07 12:01:21 ~28 min windows 💿exe

@@ -224,6 +225,8 @@ proc toMessageDto*(jsonObj: JsonNode): MessageDto =
discard jsonObj.getProp("contactRequestState", result.contactRequestState)
discard jsonObj.getProp("image", result.image)
discard jsonObj.getProp("albumId", result.albumId)
echo "LALALA", jsonObj
Copy link
Member

Choose a reason for hiding this comment

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

little leftover

Copy link
Contributor

@mprakhov mprakhov left a comment

Choose a reason for hiding this comment

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

LGTM

@borismelnik borismelnik force-pushed the fix/issue-9990-album-count branch from 5eeaae6 to b2b7936 Compare April 5, 2023 17:34
@borismelnik borismelnik force-pushed the fix/issue-9990-album-count branch from b2b7936 to db10208 Compare April 7, 2023 11:32
@borismelnik borismelnik merged commit cbdc3e6 into master Apr 7, 2023
@borismelnik borismelnik deleted the fix/issue-9990-album-count branch April 7, 2023 12:42
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Images: Add count of images in album to message
4 participants