feat: Implement avatar handling and display across chat and account screens

This commit is contained in:
k1ngsterr1
2026-01-24 01:14:25 +05:00
parent 1367864008
commit 10c78e6231
7 changed files with 135 additions and 87 deletions

View File

@@ -235,7 +235,8 @@ class PacketOnlineSubscribe : Packet() {
enum class AttachmentType(val value: Int) {
IMAGE(0), // Изображение
MESSAGES(1), // Reply (цитата сообщения)
FILE(2); // Файл
FILE(2), // Файл
AVATAR(3); // Аватар пользователя
companion object {
fun fromInt(value: Int) = entries.firstOrNull { it.value == value } ?: IMAGE