Merge remote-tracking branch 'origin/master' into messageOptionsDrawer

This commit is contained in:
Sebastian Wolf 2021-02-16 21:55:04 +01:00
commit 8ae148ec90
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A
2 changed files with 29 additions and 12 deletions

View file

@ -575,6 +575,7 @@ Page {
} }
chatViewCooldownTimer.restart(); chatViewCooldownTimer.restart();
chatViewStartupReadTimer.restart();
} }
onNewMessageReceived: { onNewMessageReceived: {
if (chatView.manuallyScrolledToBottom || message.sender.user_id === chatPage.myUserId) { if (chatView.manuallyScrolledToBottom || message.sender.user_id === chatPage.myUserId) {
@ -604,6 +605,7 @@ Page {
viewMessageTimer.queueViewMessage(chatView.count - 1); viewMessageTimer.queueViewMessage(chatView.count - 1);
} }
chatViewCooldownTimer.restart(); chatViewCooldownTimer.restart();
chatViewStartupReadTimer.restart();
} }
onNotificationSettingsUpdated: { onNotificationSettingsUpdated: {
chatInformation = chatModel.getChatInformation(); chatInformation = chatModel.getChatInformation();
@ -1007,6 +1009,7 @@ Page {
} }
} }
PinnedMessageItem { PinnedMessageItem {
id: pinnedMessageItem id: pinnedMessageItem
onRequestShowMessage: { onRequestShowMessage: {
@ -1053,6 +1056,20 @@ Page {
} }
} }
Timer {
id: chatViewStartupReadTimer
interval: 200
repeat: false
running: false
onTriggered: {
if (!chatPage.isInitialized) {
Debug.log("Page is initialized!");
chatPage.isInitialized = true;
chatView.handleScrollPositionChanged();
}
}
}
Loader { Loader {
asynchronous: true asynchronous: true
active: chatView.blurred active: chatView.blurred

View file

@ -208,7 +208,7 @@
</message> </message>
<message> <message>
<source>You</source> <source>You</source>
<translation>Вы</translation> <translation>Я</translation>
</message> </message>
<message> <message>
<source>You don&apos;t have any groups in common with this user.</source> <source>You don&apos;t have any groups in common with this user.</source>
@ -249,7 +249,7 @@
</message> </message>
<message> <message>
<source>You</source> <source>You</source>
<translation>Вы</translation> <translation>Я</translation>
</message> </message>
<message> <message>
<source>User Info</source> <source>User Info</source>
@ -912,15 +912,15 @@
<name>InReplyToRow</name> <name>InReplyToRow</name>
<message> <message>
<source>You</source> <source>You</source>
<translation>Вы</translation> <translation>Я</translation>
</message> </message>
<message> <message>
<source>Unknown</source> <source>Unknown</source>
<translation type="unfinished">Неизвестный(ая)</translation> <translation>Неизвестный(ая)</translation>
</message> </message>
<message> <message>
<source>This message was deleted</source> <source>This message was deleted</source>
<translation type="unfinished">Сообщение было удалено</translation> <translation>Сообщение было удалено</translation>
</message> </message>
</context> </context>
<context> <context>
@ -1021,7 +1021,7 @@
<name>MessageListViewItemSimple</name> <name>MessageListViewItemSimple</name>
<message> <message>
<source>You</source> <source>You</source>
<translation>Вы</translation> <translation>Я</translation>
</message> </message>
<message numerus="yes"> <message numerus="yes">
<source>scored %Ln points in %2</source> <source>scored %Ln points in %2</source>
@ -1052,7 +1052,7 @@
<name>MessageOverlayFlickable</name> <name>MessageOverlayFlickable</name>
<message> <message>
<source>You</source> <source>You</source>
<translation>Вы</translation> <translation>Я</translation>
</message> </message>
<message> <message>
<source>This message was forwarded. Original author: %1</source> <source>This message was forwarded. Original author: %1</source>
@ -1248,7 +1248,7 @@
<name>PinnedMessageItem</name> <name>PinnedMessageItem</name>
<message> <message>
<source>You</source> <source>You</source>
<translation>Вы</translation> <translation>Я</translation>
</message> </message>
<message> <message>
<source>Pinned Message</source> <source>Pinned Message</source>
@ -1705,22 +1705,22 @@
</message> </message>
<message> <message>
<source>Removing sticker set</source> <source>Removing sticker set</source>
<translation type="unfinished"></translation> <translation>Удаление набора стикеров</translation>
</message> </message>
<message> <message>
<source>Sticker set successfully removed!</source> <source>Sticker set successfully removed!</source>
<translation type="unfinished"></translation> <translation>Набор стикеров успешно удалён!</translation>
</message> </message>
</context> </context>
<context> <context>
<name>StickerSetOverlay</name> <name>StickerSetOverlay</name>
<message> <message>
<source>Sticker set successfully installed!</source> <source>Sticker set successfully installed!</source>
<translation type="unfinished"></translation> <translation>Набор стикеров успешно установлен!</translation>
</message> </message>
<message> <message>
<source>Sticker set successfully removed!</source> <source>Sticker set successfully removed!</source>
<translation type="unfinished"></translation> <translation>Набор стикеров успешно удалён!</translation>
</message> </message>
</context> </context>
<context> <context>