fix: implement optimistic UI for image sending and enhance attachment handling

This commit is contained in:
2026-02-03 23:40:43 +05:00
parent 44a816dedb
commit dd7d7b19cf
5 changed files with 406 additions and 80 deletions

View File

@@ -265,7 +265,8 @@ data class MessageAttachment(
val type: AttachmentType,
val preview: String = "", // Метаданные: "UUID::metadata" или "filesize::filename"
val width: Int = 0,
val height: Int = 0
val height: Int = 0,
val localUri: String = "" // 🚀 Локальный URI для мгновенного отображения (optimistic UI)
)
/**