mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-25 06:52:35 +01:00
fix: Remove avatar from room
This commit is contained in:
parent
199c4f95c4
commit
730063e40e
@ -286,11 +286,10 @@ class ChatDetailsController extends State<ChatDetails> {
|
|||||||
actions: actions,
|
actions: actions,
|
||||||
);
|
);
|
||||||
if (action == null) return;
|
if (action == null) return;
|
||||||
final matrix = Matrix.of(context);
|
|
||||||
if (action == AvatarAction.remove) {
|
if (action == AvatarAction.remove) {
|
||||||
await showFutureLoadingDialog(
|
await showFutureLoadingDialog(
|
||||||
context: context,
|
context: context,
|
||||||
future: () => matrix.client.setAvatarUrl(matrix.client.userID, null),
|
future: () => room.setAvatar(null),
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,7 @@ class SettingsController extends State<Settings> {
|
|||||||
if (action == AvatarAction.remove) {
|
if (action == AvatarAction.remove) {
|
||||||
final success = await showFutureLoadingDialog(
|
final success = await showFutureLoadingDialog(
|
||||||
context: context,
|
context: context,
|
||||||
future: () => matrix.client.setAvatarUrl(matrix.client.userID, null),
|
future: () => matrix.client.setAvatar(null),
|
||||||
);
|
);
|
||||||
if (success.error == null) {
|
if (success.error == null) {
|
||||||
updateProfile();
|
updateProfile();
|
||||||
|
Loading…
Reference in New Issue
Block a user