chat: deleted-аккаунты — колонка deleted, скрытие/зачёркивание, не подключаемся

This commit is contained in:
evgeny committed 2026-09-07 01:40:53 +03:00
1 parent 631a176944
commit a17a85a383
10 files changed
+91 -46

No files matched your search

@@ -24,6 +24,7 @@ import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.text.style.TextDecoration
import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
@@ -176,6 +177,7 @@ private fun MemberListItem(
fontSize = 15.sp,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
textDecoration = if (member.isDeleted) TextDecoration.LineThrough else TextDecoration.None,
color = if (member.isSelf) Color(0xFF4CAF50) else Color.Unspecified
)
val parts = mutableListOf<String>()
@@ -382,7 +382,7 @@ class ChatViewModel : ViewModel() {
viewModelScope.launch {
val (raw, owner) = withContext(Dispatchers.IO) { r.getMembers(chId) to r.isChannelOwner(chId) }
_channelOwner.value = owner
_members.value = raw.map { m ->
_members.value = raw.filter { owner || !it.isDeleted }.map { m ->
val ns = statuses[m.nodeId]
val base = if (ns != null) m.copy(
online = ns.online, rtt = ns.bestRtt,