Update RoomProfile.jsx
This commit is contained in:
parent
9b5f71cf6c
commit
f4c0836756
1 changed files with 1 additions and 1 deletions
|
@ -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 }, '');
|
||||||
|
|
Loading…
Reference in a new issue