consisten avatar handling in new group creation

This commit is contained in:
or-else
2022-11-26 14:21:07 -08:00
parent 161f544442
commit 297aef7bf1
10 changed files with 224 additions and 139 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ export default class TopicDescEdit extends React.Component {
// Utility method for converting cropped avatar blob to bytes for sending inband or
// for uploading it to the server out of band.
uploadAvatar(mime, blob, width, height) {
const readyToUpload = (image) => {
const readyToUpload = image => {
let {mime, blob} = image;
if (blob.size > MAX_AVATAR_BYTES) {
// Too large to send inband - uploading out of band and sending as a link.