Commit graph

813 commits

Author SHA1 Message Date
Sebastian Wolf
fd74da2408 Restore web page preview 2020-11-03 08:18:46 +01:00
Sebastian Wolf
480a71720b
Merge pull request #127 from jgibbon/bugfix/changelog-path
fix rpm changelog
2020-11-03 08:16:06 +01:00
John Gibbon
7240bbbf44 entity sort offset+length 2020-11-03 00:03:00 +01:00
Sebastian Wolf
1b345a6654 Add a tap-to-change date format for messages, fixes #47 2020-11-02 23:42:23 +01:00
Sebastian Wolf
179ef885b5 Chat Information Page: More tweaks 2020-11-02 23:19:50 +01:00
Sebastian Wolf
5ee71dda29 Chat Information Page: Improvements for channels 2020-11-02 22:51:12 +01:00
Sebastian Wolf
f7738e5178
Merge pull request #126 from Wunderfitz/bugfix/initial-scroll-position
Set initial scroll position for ChatPage
2020-11-02 21:35:36 +01:00
John Gibbon
666fbd4a69 fix rpm changelog
To include the changes in the rpm it
 - needs to be renamed
 - need to have entries in descending order
Also, I've changed the second 0.2 → 0.3
2020-11-02 21:18:21 +01:00
Sebastian Wolf
c4aa5042ff
Merge pull request #125 from iamnomeutente/master
Update harbour-fernschreiber-it.ts
2020-11-02 21:04:51 +01:00
Sebastian Wolf
c951977b3c
Merge pull request #124 from GNUuser/patch-13
Update harbour-fernschreiber-es.ts
2020-11-02 21:04:10 +01:00
John Gibbon
5903fbc4da Set initial scroll position for ChatPage
Fixes #1
2020-11-02 20:54:18 +01:00
iamnomeutente
6788fa96f7 Update harbour-fernschreiber-it.ts 2020-11-02 16:29:06 +01:00
carlosgonz
aa616e9964
Update harbour-fernschreiber-es.ts 2020-11-01 18:54:27 -05:00
Sebastian Wolf
f91079ca43 Try to fix HTML entity replacements for QML elements with styled text 2020-11-01 22:55:43 +01:00
Sebastian Wolf
86ac99004d Notifications: disable previewBody/Summary for now, update README 2020-11-01 21:58:22 +01:00
Sebastian Wolf
76bbc19a5d
Merge pull request #109 from monich/notifications
Notifications
2020-11-01 21:42:36 +01:00
Slava Monich
45180b64b4 Don't post unwanted feedback for removed notifications
Also, don't turn off PatternCommunicationIM pattern when some (but
not all) notifications are removed, don't keep empty notification
groups in notificationGroups map, reuse already posted notification
after restarting the client, handle chat title change and more...
2020-11-01 21:07:15 +02:00
Slava Monich
9504b24d5c Pre-allocate commonly used QStrings in NotificationManager
To avoid overhead (e.g. ASCII => UTF16 convertion) on each use.
2020-11-01 21:07:15 +02:00
Slava Monich
484f66f01c Don't pass primitive types by const references to NotificationManager
It makes no sense whatsoever.
2020-11-01 21:07:15 +02:00
Sebastian Wolf
6eed093e7b
Merge pull request #121 from monich/dbus-open
Don't animate ChatPage transition when notification is tapped
2020-11-01 19:52:36 +01:00
Sebastian Wolf
4de0cb213e
Merge pull request #120 from monich/chatmodel-crash
Fix crash in ChatModel
2020-11-01 19:41:44 +01:00
Sebastian Wolf
cccb48ced5
Merge pull request #119 from jgibbon/feature/qml-import-versions
clean up qml imports
2020-11-01 19:37:49 +01:00
Slava Monich
96dcbdde22 Don't animate ChatPage transition when notification is tapped
And simplified unrolling of the page stack.
2020-11-01 20:36:59 +02:00
Sebastian Wolf
11a1018ad9
Merge pull request #118 from jgibbon/feature/copy-chat-invite-link
Remove clipboard workaround
2020-11-01 19:28:03 +01:00
Sebastian Wolf
4938bbf361
Merge pull request #117 from monich/chatType
Move chatTypeFromString from ChatListModel to TDLibWrapper
2020-11-01 19:24:45 +01:00
Sebastian Wolf
8e97d19a02 Update Copy-to-Clipboard functionality & README 2020-11-01 19:20:21 +01:00
Sebastian Wolf
6cdbfec52e
Merge pull request #116 from chstem/clipboard
Copy messages to clipboard
2020-11-01 19:13:12 +01:00
Sebastian Wolf
e26cd3d9d3
Merge branch 'master' into clipboard 2020-11-01 19:12:52 +01:00
Sebastian Wolf
09256d8ed9 Update README after latest changes to chat page 2020-11-01 18:56:09 +01:00
Sebastian Wolf
27f1f02b29
Merge pull request #115 from iamnomeutente/master
Update harbour-fernschreiber-it.ts
2020-11-01 18:00:16 +01:00
Sebastian Wolf
ea33c81331
Merge pull request #114 from jgibbon/feature/speed-up-chatpage
Reduce ChatPage.qml jit compile time
2020-11-01 17:59:06 +01:00
Sebastian Wolf
30decc8f84 Make document picker work again, fix image picker 2020-11-01 17:54:00 +01:00
Slava Monich
4049d4aa7c Fixed crash in ChatModel
QList::first() panics if the list is empty.
2020-11-01 05:09:47 +02:00
John Gibbon
3f454711cf remove some unused imports 2020-10-31 21:09:59 +01:00
John Gibbon
f4d0a4800e QtMultimedia 5.6 2020-10-31 20:50:32 +01:00
John Gibbon
2cd4012b6a QtQuick 2.6 2020-10-31 20:49:03 +01:00
John Gibbon
70dc3c8571 Remove clipboard workaround
Turns out, I somehow forgot about the Clipboard type while implementing the info page. Thanks @chstem
2020-10-31 20:40:54 +01:00
Slava Monich
4c2f9dba19 Moved chatTypeFromString from ChatListModel to TDLibWrapper
So that it can be used elsewhere
2020-10-31 21:19:34 +02:00
John Gibbon
fb5cf0d382 Remorse.itemAction; content Loader height preset 2020-10-31 20:02:18 +01:00
Christian Stemmle
a9fe6d51d2 Add context menu item: copy message to clipboard 2020-10-31 15:23:58 +01:00
iamnomeutente
46f1b144a7 Update harbour-fernschreiber-it.ts 2020-10-31 09:54:47 +01:00
iamnomeutente
a8afc6e60e Update harbour-fernschreiber-it.ts 2020-10-31 09:51:09 +01:00
iamnomeutente
ba0038ef8c Merge remote-tracking branch 'upstream/master' 2020-10-31 09:38:51 +01:00
John Gibbon
1fa7192728 Reduce ChatPage.qml jit compile time
First of all: Take all measurements I mention with a grain of salt – all of them are rough and not necessarily measured more than a few times. All times were measured on an Xperia X run via SDK.

Visiting a chat page can take a long time, especially before the qml is cached by the engine.
When opening it for the first time after application launch, it sometimes takes >1000ms from onClicked (OverviewPage) to Component.OnCompleted (Chatpage).
Subsequent activations take roughly 470-480ms.

With these changes, I was able to reduce these times to ~450ms for the first, ~100ms for subsequent activations of the ChatPage on my test device.

Things changed:
- The components for displaying extra content to a message are (mostly) gone and replaced by a single Loader. This Loader does not use sourceComponent to trade the initial compilation boost for a neglegible bit of runtime penalty.
- Connections were consolidated
- I was surprised how costly the inclusion of the RemorseItem was (compiling ~75ms, initializing up to ~20ms for every delegate). So I traded a bit for a compromise. deleteMessageRemorseItem is now defined on the appWindow level, where it gets a bit mitigated by the animations at application start. Also, only one deletion at a time is now possible. We can easily revert this change, but I thought it worthwhile despite its drawbacks.
- profileThumbnailComponent is now defined directly as sourceComponent, removing the need for its id. Probably didn't do anything.
- InReplyToRow had width: parent.width, so I removed horizontalCenter. Also probably didn't change compilation time at all.
- Another compromise I was willing to take – your opinion may differ: The PickerPages took ages (~200ms) to just parse/compile inside those Components, so I replaced them with the "string notation" of pageStack.push. Drawback: The first time a picker gets activated, you'll see how slow it is. Subsequent activations aren't that bad – also for the other pickers.
2020-10-30 20:37:25 +01:00
Sebastian Wolf
72315312d6
Merge pull request #113 from jgibbon/feature/reenable-poll-type-display
add poll preview type output
2020-10-30 20:28:43 +01:00
Sebastian Wolf
46ffdc68c4
Merge pull request #112 from GNUuser/patch-12
Update harbour-fernschreiber-es.ts
2020-10-30 20:25:55 +01:00
John Gibbon
c185ba1b42 add poll preview type output
as discussed in d45eb28daa
2020-10-30 19:07:06 +01:00
carlosgonz
47d5ec73a3
Update harbour-fernschreiber-es.ts 2020-10-29 18:51:38 -04:00
Sebastian Wolf
d45eb28daa Minor changes to poll display & translation adjustments 2020-10-29 22:39:43 +01:00
Sebastian Wolf
e3224c5b4f
Merge pull request #111 from jgibbon/bugfix/poll-fixes
Fix two issues in PollPreview
2020-10-29 21:57:16 +01:00