UX: Bump up chat delete messages limit (#29202)
50 is pretty restrictive, let's do 200 for now
This commit is contained in:
parent
3a2e747cf6
commit
6c6cdd96e9
|
@ -22,7 +22,7 @@ module Chat
|
||||||
attribute :message_ids, :array
|
attribute :message_ids, :array
|
||||||
|
|
||||||
validates :channel_id, presence: true
|
validates :channel_id, presence: true
|
||||||
validates :message_ids, length: { minimum: 1, maximum: 50 }
|
validates :message_ids, length: { minimum: 1, maximum: 200 }
|
||||||
end
|
end
|
||||||
model :messages
|
model :messages
|
||||||
policy :can_delete_all_chat_messages
|
policy :can_delete_all_chat_messages
|
||||||
|
|
|
@ -12,7 +12,7 @@ import I18n from "discourse-i18n";
|
||||||
import DeleteMessagesConfirm from "discourse/plugins/chat/discourse/components/chat/modal/delete-messages-confirm";
|
import DeleteMessagesConfirm from "discourse/plugins/chat/discourse/components/chat/modal/delete-messages-confirm";
|
||||||
import ChatModalMoveMessageToChannel from "discourse/plugins/chat/discourse/components/chat/modal/move-message-to-channel";
|
import ChatModalMoveMessageToChannel from "discourse/plugins/chat/discourse/components/chat/modal/move-message-to-channel";
|
||||||
|
|
||||||
const DELETE_COUNT_LIMIT = 50;
|
const DELETE_COUNT_LIMIT = 200;
|
||||||
|
|
||||||
export default class ChatSelectionManager extends Component {
|
export default class ChatSelectionManager extends Component {
|
||||||
@service("composer") topicComposer;
|
@service("composer") topicComposer;
|
||||||
|
|
Loading…
Reference in New Issue