Commit graph

50 commits

Author SHA1 Message Date
Sebastian Wolf
233515474f
Merge pull request #297 from monich/fileId
Update webPage photo id when message gets updated
2021-01-08 23:33:52 +01:00
Slava Monich
92655b4417 Update webPage photo id when message gets updated 2021-01-08 05:36:34 +02:00
Slava Monich
7f9166d1ae Initialize ChatModel::searchModeActive 2021-01-08 01:03:22 +02:00
Slava Monich
0cb19d833c Message API usage cleanup
1. Pass chat_id where appropriate
2. Pass message_id and chat_id (which are numbers) as numbers
3. Use pre-initialized QStrings more often
4. Don't pass numbers by const reference, it doesn't make sense
5. Removed some redundant const modifiers
2020-12-30 18:20:50 +02:00
Sebastian Wolf
72fd008dfc
Disable some stuff that is not needed in search mode 2020-12-28 17:12:21 +01:00
Sebastian Wolf
225eb76899
Fix crash on incoming message deletions & minor other fixes 2020-12-28 14:35:27 +01:00
Sebastian Wolf
0f28db0115
Merge remote-tracking branch 'origin/master' into searching 2020-12-27 12:06:54 +01:00
Sebastian Wolf
19a17ed3f3
Now you can search in a chat... 2020-12-27 00:16:25 +01:00
John Gibbon
d0f33969eb support basic bot messages (reply markup)
only inlineKeyboardButtonTypeCallback and inlineKeyboardButtonTypeUrl are implemented.
2020-12-27 00:01:59 +01:00
Sebastian Wolf
fe0b390a87
TDLib 1.7: Bring back pinned messages (nobody noticed so far?) 2020-12-25 22:38:13 +01:00
Sebastian Wolf
63db26afc8 TDLib 1.7: Sticker IDs, message sender IDs 2020-12-07 21:43:09 +01:00
Slava Monich
b6c97c7f93 Optimized chat model a bit
1. Store and handle message ids as numbers rather than variants/strings
2. Incrementally update message id map
3. Expose additional roles and properties to avoid unnecessary lookups
2020-12-06 21:10:50 +02:00
Sebastian Wolf
56f5a675ac Fix reload after single message, changelog for 0.5.1 2020-12-04 22:53:52 +01:00
Sebastian Wolf
98d07c86c4 Show some love to the editing functionality 2020-12-01 21:17:13 +01:00
Slava Monich
162e1ca996 Take logging categories into use
Logging can be enabled in release build like this:

QT_LOGGING_RULES="fernschreiber.*=true" harbour-fernschreiber

See https://doc.qt.io/qt-5/qloggingcategory.html for more details.
2020-11-22 16:40:55 +02:00
Slava Monich
d1ccf9f796 Show notification popups except for the current chat
And drop dependency on Ngf. Also, pre-initialize the chat photo when
pushing the chat page.
2020-11-20 21:42:23 +02:00
Sebastian Wolf
2830f50a35 React properly on pinned message changes, nice message overlay ;) 2020-11-18 14:59:35 +01:00
Slava Monich
8db731636c Removed mutex from ChatModel
AFAICT there's nothing to synchronize here
2020-11-16 21:33:47 +02:00
Sebastian Wolf
9141b8e68b Fix crash when forwarding to some chats, introduce iterative init 2020-11-16 16:52:48 +01:00
Sebastian Wolf
9507024f51 Loading messages or not loading them...? Next step towards #136 2020-11-16 14:22:32 +01:00
Sebastian Wolf
18e88a8412 If last message was an own one, it was of course read... 2020-11-16 00:08:55 +01:00
Sebastian Wolf
85d1bebc3a Load last read messages, enable lazy-loading the future, might fix #136 2020-11-15 23:05:22 +01:00
Slava Monich
2323c574b3 Handle updateChatPhoto message 2020-11-15 06:12:17 +02:00
Slava Monich
90b32be076 Shortened log statements in ChatModel 2020-11-15 06:12:17 +02:00
Sebastian Wolf
7d78a2f126 Message sent successfully: Send dataChanged event first 2020-11-13 23:39:27 +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
Sebastian J. Wolf
91ae3651ef Change license header to reflect number of contributions 2020-10-19 19:34:47 +02:00
John Gibbon
74a732a5b6 implement chat info page
includes some basic group administration features
2020-10-19 12:48:55 +02:00
Sebastian J. Wolf
fcc46fbc94 Auto-scroll to message if user sent it 2020-09-22 20:32:35 +02:00
Sebastian J. Wolf
64b6c8607e Deleting messages seems to work... 2020-09-20 00:13:42 +02:00
Sebastian J. Wolf
b78a0f8731 Edit message seems to work 2020-09-19 20:33:51 +02:00
Sebastian J. Wolf
b5f39f78c0 Mark all messages as read in small chats 2020-09-16 21:12:39 +02:00
Sebastian J. Wolf
9070caa2a3 Mute/unmute chats both from list and in chat 2020-09-16 20:43:36 +02:00
Sebastian J. Wolf
8f3f7cfa9b New chat positioning method: Faster, but less exact 2020-09-13 23:25:48 +02:00
Sebastian J. Wolf
aa3a841fee Prepare notification manager 2020-09-02 22:49:15 +02:00
Sebastian J. Wolf
1a3768b79b Workaround for chat listview crashes (no last item, why?) 2020-08-31 23:51:32 +02:00
Sebastian J. Wolf
a04332d4b6 Fix chat positioning and sent/read indicator 2020-08-31 21:51:52 +02:00
Sebastian J. Wolf
cff06cc32d Try to get pending message state into the chat 2020-08-30 23:52:22 +02:00
Sebastian J. Wolf
a131aa739b Add read/unread info to own messages 2020-08-30 19:04:16 +02:00
Sebastian J. Wolf
0849fadadd Translations adjustments, trigger history reload earlier 2020-08-30 15:04:15 +02:00
Sebastian J. Wolf
5c16a13b25 Add display of unread message count to chat 2020-08-29 21:39:57 +02:00
Sebastian J. Wolf
cca241ed9a Fix infinite loading for small amount of messages 2020-08-29 18:28:57 +02:00
Sebastian J. Wolf
63833b3c5c A little bit of lazy loading for the chat view... 2020-08-29 18:04:23 +02:00
Sebastian J. Wolf
a24bf81355 Some work on reply management, still some work to do... 2020-08-29 11:22:18 +02:00
Sebastian J. Wolf
c741a157b7 Introduce video preview 2020-08-28 10:41:18 +02:00
Sebastian J. Wolf
8a3b07e537 Load older chat messages if needed 2020-08-26 22:52:06 +02:00
Sebastian J. Wolf
63966f052a React properly if no messages are there... 2020-08-23 17:24:05 +02:00
Sebastian J. Wolf
c472e70775 React to new messages in chat 2020-08-22 23:49:02 +02:00
Sebastian J. Wolf
ca7abb2a2f First chat message list :) 2020-08-22 21:43:20 +02:00
Sebastian J. Wolf
2750764de9 Skeleton for chat model 2020-08-22 17:30:02 +02:00