RoomListDeclineInviteMenu: limit room name

Improve preview.
Closes #6659
This commit is contained in:
Benoit Marty 2026-04-27 09:48:38 +02:00 committed by Benoit Marty
parent 9a2ad3928a
commit bf57223d05
3 changed files with 66 additions and 9 deletions

View file

@ -0,0 +1,15 @@
/*
* Copyright (c) 2026 Element Creations Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
* Please see LICENSE files in the repository root for full details.
*/
package io.element.android.appconfig
object ProtectionConfig {
/**
* The maximum length of a room name, to limit attack vectors in room invite.
*/
const val MAX_ROOM_NAME_LENGTH = 128
}