UX: Bump up chat delete messages limit (#29202)

50 is pretty restrictive, let's do 200 for now
This commit is contained in:
Martin Brennan 2024-10-15 13:15:40 +10:00 committed by GitHub
parent 3a2e747cf6
commit 6c6cdd96e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ module Chat
attribute :message_ids, :array
validates :channel_id, presence: true
validates :message_ids, length: { minimum: 1, maximum: 50 }
validates :message_ids, length: { minimum: 1, maximum: 200 }
end
model :messages
policy :can_delete_all_chat_messages

View File

@ -12,7 +12,7 @@ import I18n from "discourse-i18n";
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";
const DELETE_COUNT_LIMIT = 50;
const DELETE_COUNT_LIMIT = 200;
export default class ChatSelectionManager extends Component {
@service("composer") topicComposer;