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: show mime type icon for attachments in messages #619

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

ShGKme
Copy link
Contributor

@ShGKme ShGKme commented Apr 17, 2024

☑️ Resolves

Might not be the best solution, but as a workaround.

@Ivansss @mahibi Do you use all available icons for mime types from server, including theming?

🖼️ Screenshots

🏚️ Before 🏡 After
image image

@ShGKme ShGKme added bug Something isn't working 3. to review labels Apr 17, 2024
@ShGKme ShGKme self-assigned this Apr 17, 2024
@ShGKme ShGKme changed the title fix: show mime type icon in messages fix: show mime type icon for attachments in messages Apr 17, 2024
@Ivansss
Copy link
Member

Ivansss commented Apr 17, 2024

Most of them but not all of them.
In Talk iOS we need to update them to the latest version of them nextcloud/talk-ios#1578

Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

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

After fixing the import, works correctly (tested against main and stable27)

@@ -24,6 +24,7 @@ import { translate, translatePlural } from '@nextcloud/l10n'

import { appData } from '../../app/AppData.js'
import { dialogs } from './OC/dialogs.js'
import { MimeTypeList } from './OC/MimeType.js'
Copy link
Contributor

@Antreesy Antreesy Apr 18, 2024

Choose a reason for hiding this comment

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

incorrect filename, build is failing

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 though eslint-pluing-import should have caught this 🙈

Copy link

@DorraJaouad DorraJaouad left a comment

Choose a reason for hiding this comment

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

Tested 👍🏻
after filename change in import

@mahibi
Copy link

mahibi commented Apr 18, 2024

@Ivansss @mahibi Do you use all available icons for mime types from server, including theming?

See https://github.com/nextcloud/talk-android/blob/f5a4274e545f506861dc7baf7f92ec5e73d674f6/app/src/main/java/com/nextcloud/talk/utils/DrawableUtils.kt for android, did not compare..
Some were updated by nextcloud/talk-android#3719

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
@ShGKme ShGKme force-pushed the fix/oc-MimeType-getIconUrl branch from 1b26b28 to 4e14804 Compare April 18, 2024 14:32
@ShGKme
Copy link
Contributor Author

ShGKme commented Apr 18, 2024

  • Fixed import
  • Rebased
  • Not using any custom theming from server, mobile clients also don't use them

@ShGKme ShGKme enabled auto-merge April 18, 2024 14:32
@ShGKme ShGKme merged commit 38cb36d into main Apr 18, 2024
6 checks passed
@ShGKme ShGKme deleted the fix/oc-MimeType-getIconUrl branch April 18, 2024 14:36
@ShGKme ShGKme mentioned this pull request Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants