-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
[Desktop] Icon preview of latest WebXDC displayed when summary is reaction event #5782
Comments
needs to be fixed in core or in jsonrpc, this is |
same for webxdc apps probably. in case things get more complex than expected, we can also consider to drop the image completely. it is of limited use in that size with distorted aspect, often saying not much more than that there is an image. and we meanwhile have an emoji to indicate better than the old text that an image is present. |
I like the preview image, also I don't see why it should be complex |
Can't reproduce this on my desktop, i see no image preview in case of a reaction. Also code-wise it looks correct, see deltachat-core-rust/src/summary.rs Lines 64 to 84 in d6d90db
|
I think it's about when the last message in the chat is an image or webxdc and there is a newer reaction to any other message in the chat that came in after the image. Strange that the code doesn't seem to have that possibility. what desktop/core version did you use @adbenitez ? |
i retried that:
i think, desktop must use only |
the code in desktop: https://github.com/deltachat/deltachat-desktop/blob/83e44138e6d160f7cb5ae45c81f34bd85d0ba4d7/src/renderer/components/chat/ChatListItem.tsx#L104 webxdc icons are not set in code, because the path is inside of the zip files which is not accessible. |
Let's implement this approach. It looks as a minimal bugfix. |
…id" (#5782) This is a hint for apps that a WebXDC icon should be shown in the summary, e.g. in the chatlist. Otherwise it's not clear when it should be shown, e.g. it shouldn't be shown in a reaction summary.
…sg-id" (#5782) This is a hint for apps that a WebXDC icon should be shown in the summary, e.g. in the chatlist. Otherwise it's not clear when it should be shown, e.g. it shouldn't be shown in a reaction summary.
…sg-id" (#5782) This is a hint for apps that a WebXDC icon should be shown in the summary, e.g. in the chatlist. Otherwise it's not clear when it should be shown, e.g. it shouldn't be shown in a reaction summary.
#5789 is merged, this should be closed after the corresponding DC Desktop fix. |
Hey, this pr fixes the distortion: |
…n event (#4062) * Fixes Icon preview of latest WebXDC displayed when summary is reaction event deltachat/deltachat-core-rust#5782 * added changelog message * fixed formatting * fix lint * fixed code * put changelog entry to the right place
this might be hard to fix without help from core, since these "foo reacted with X" summaries are kind of a minimal hack core-side
The text was updated successfully, but these errors were encountered: