mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 08:15:02 +00:00
9ac71fd35d
Thread notification tags have the form "roomId|threadId". clearReadRoomsNotifications was building a RoomId from the whole tag, which is only validated in debug builds, so in release an invalid room id reached RoomListService.room(). Add NotificationCreator.getMessageNotificationRoomId(), the inverse of messageTag(), which only keeps the part before '|' and checks it is a valid room id. Also make RoomListServiceInterface.roomOrNull take a RoomId instead of a String. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>