android: add "mark read" action to chat link dropdown menu (#675)

* android: add "mark read" action to chat link dropdown menu

* Update apps/android/app/src/main/java/chat/simplex/app/model/ChatModel.kt

Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>

Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
This commit is contained in:
JRoberts
2022-05-20 18:32:21 +04:00
committed by GitHub
parent 718c8f826a
commit 7f84057b86
6 changed files with 46 additions and 13 deletions

View File

@@ -230,7 +230,7 @@ struct ChatView: View {
}
func markAllRead() {
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
DispatchQueue.main.asyncAfter(deadline: .now() + 0.75) {
if chatModel.chatId == chat.id {
Task { await markChatRead(chat) }
}