Fix clearing empty chat messages (fixes #3192)
This commit is contained in:
parent
b7fdbc88d6
commit
d78a7f91bc
@ -22,7 +22,8 @@ Motions:
|
|||||||
Core:
|
Core:
|
||||||
- No reload on logoff. OpenSlides is now a full single page
|
- No reload on logoff. OpenSlides is now a full single page
|
||||||
application [#3172].
|
application [#3172].
|
||||||
- Adding support for choosing image files as logos.
|
- Adding support for choosing image files as logos [#3184].
|
||||||
|
- Fixing error when clearing empty chat [#3199].
|
||||||
|
|
||||||
Users:
|
Users:
|
||||||
- User without permission to see users can now see agenda item speakers,
|
- User without permission to see users can now see agenda item speakers,
|
||||||
|
@ -737,6 +737,7 @@ class ChatMessageViewSet(ModelViewSet):
|
|||||||
args.append(chatmessage.pk)
|
args.append(chatmessage.pk)
|
||||||
chatmessages.delete()
|
chatmessages.delete()
|
||||||
# Trigger autoupdate and setup response.
|
# Trigger autoupdate and setup response.
|
||||||
|
if len(args) > 0:
|
||||||
inform_deleted_data(*args)
|
inform_deleted_data(*args)
|
||||||
return Response({'detail': _('All chat messages deleted successfully.')})
|
return Response({'detail': _('All chat messages deleted successfully.')})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user