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

Upload group conversation image #1067

Merged
merged 1 commit into from
Oct 3, 2023
Merged

Upload group conversation image #1067

merged 1 commit into from
Oct 3, 2023

Conversation

dalefukami
Copy link
Contributor

What does this do?

Uploads the group conversation cover image

@dalefukami dalefukami requested a review from a team October 3, 2023 17:03
@dalefukami dalefukami merged commit c89e061 into main Oct 3, 2023
@dalefukami dalefukami deleted the image-for-group/zos-719 branch October 3, 2023 17:28
Copy link
Collaborator

@domw30 domw30 left a comment

Choose a reason for hiding this comment

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

Nice 👍

@@ -457,6 +472,15 @@ export class MatrixClient implements IChatClient {
return '';
}

private getRoomAvatar(room: Room): string {
Copy link
Collaborator

Choose a reason for hiding this comment

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

We could add a helper function for all of these 'get' methods at some point 🙂 will take a look if I happen to work around these

return (await uploadImage(image)).url;
} catch (error) {
// For now, we will just ignore the error and continue to create the room
// No reason for the image upload to block the room creation
Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

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.

2 participants