Update RoomProfile.jsx

This commit is contained in:
Krishan 2022-04-17 10:39:24 +05:30 committed by GitHub
parent 9b5f71cf6c
commit f4c0836756
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -117,7 +117,7 @@ function RoomProfile({ roomId }) {
const handleAvatarUpload = async (url) => { const handleAvatarUpload = async (url) => {
if (url === null) { if (url === null) {
if (confirm('Are you sure that you want to remove avatar?')) { if (confirm('Are you sure that you want to remove room avatar?')) {
await mx.sendStateEvent(roomId, 'm.room.avatar', { url }, ''); await mx.sendStateEvent(roomId, 'm.room.avatar', { url }, '');
} }
} else await mx.sendStateEvent(roomId, 'm.room.avatar', { url }, ''); } else await mx.sendStateEvent(roomId, 'm.room.avatar', { url }, '');