John Preston
021c8896c8
Fixed crash with forbidden megagroup in App::feedChats.
...
ReplyMarkupClickHandler holds FullMsgId instead of HistoryItem*.
2016-06-15 08:36:59 +03:00
John Preston
044e9221e8
Drafts always shown in dialogs list when no unread messages in the chat.
...
Edition of any message to service message "history cleared".
2016-06-13 21:42:25 +03:00
John Preston
16429b3008
Floating dates that appear animated when scrolling messages added.
2016-06-10 13:21:09 +03:00
John Preston
a428534345
Cloud draft handling improved. Fixed Edit while already editing a msg.
2016-06-09 17:31:10 +03:00
John Preston
19cacd0efb
New layout of service messages (complex shape of a bubble).
2016-06-09 14:51:24 +03:00
John Preston
a5cbbba12d
Empty messages do not participate in displayDate() flow.
...
Example of an empty message is service message after clear history.
2016-06-08 22:14:17 +03:00
John Preston
23a598ba3d
Crash in Qt fixed for OS X. Edited badge removed for bot messages.
...
Sticker with reply layout fixed once more.
2016-06-08 21:46:37 +03:00
John Preston
1859b83e8d
Dialog styles moved from basic.style to dialogs.style.
...
Many minor design improvements in the new profiles.
New drafts design in the dialogs list: no icon, red badge.
Verified checkbox added to the new profile implementation.
Drafts saving to cloud is delayed for 1 second when switching chats.
Before quitting the app makes an attempt to save drafts (timeout 1.5s).
2016-06-07 22:59:39 +03:00
John Preston
520260f207
Merge branch 'profile' into drafts
...
Conflicts:
Telegram/SourceFiles/app.cpp
Telegram/SourceFiles/codegen/style/processor.cpp
Telegram/SourceFiles/history.cpp
Telegram/SourceFiles/historywidget.cpp
Telegram/SourceFiles/mainwidget.cpp
Telegram/SourceFiles/mainwidget.h
Telegram/SourceFiles/profilewidget.cpp
Telegram/SourceFiles/profilewidget.h
Telegram/Telegram.vcxproj
Telegram/Telegram.vcxproj.filters
2016-06-06 18:16:52 +03:00
John Preston
cd2615d8d0
Cloud stored message drafts support added.
2016-06-03 21:24:27 +03:00
John Preston
958e47cc19
Received messages are not marked as read while scroll is at the top.
...
HistoryToEnd button is always shown if there are unread messages.
HistoryToEnd button displayes unread messages count.
New service message (HistoryCleared) is handled (not displayed at all).
2016-06-03 15:45:33 +03:00
John Preston
7f353d9b1a
Removed all code related to channel comments.
2016-05-27 19:47:46 +03:00
John Preston
533a955dda
Unread outgoing messages in supergroups supported.
...
Looking through the history of group avatar photos added.
Messages about some contact joined Telegram are never unread.
2016-05-20 19:35:16 +03:00
John Preston
6e2dea7030
Merge branch 'master' into profile
...
Conflicts:
Telegram/Telegram.vcxproj.filters
2016-05-16 18:47:44 +03:00
John Preston
7444a9ad67
Fixed scroll down to reply. Show that bot admins see all messages.
...
Fixed date display when messages were at the same day of different months.
Shared contact with author signature height increased.
2016-05-14 20:28:35 +03:00
John Preston
3d073eddd6
New profiles started. Function<> made by variadic templates.
2016-05-12 19:05:20 +03:00
John Preston
f02fc4dd96
Setting f_views flag for a client-side forwarded message with views.
2016-05-10 10:57:40 +03:00
John Preston
3e5f51f45a
Everywhere TextWithTags and TextWithEntities are used.
...
Copy tags from messages to clipboard, to drag mime data.
Sorting entities while processing (links, monospace, mentions).
2016-05-06 20:33:48 +03:00
John Preston
463450e607
Saving FlatTextarea tags to drafts, applying them in setText.
...
Now instead of plain text a TextWithTags struct is used almost
everywhere. Started writing and reading serialized tags to drafts
from 9048, switched version to 0.9.48 for testing.
2016-05-05 19:04:17 +03:00
John Preston
45143c40c9
FlatTextarea handles tags on insertFromMime and tags editing.
...
Fixed dependent messages update when message was edited.
Fixed entities parsing in Text when they follow one after another.
2016-05-04 19:46:24 +03:00
John Preston
2834ce0344
Moving to Qt 5.6.0, instructions can be broken.
2016-04-23 14:40:42 +03:00
John Preston
7d272919aa
Version 0.9.44 copy text context menu item added to some messages.
2016-04-20 15:56:59 +03:00
John Preston
bb70a76b9c
Several crashes fixed.
2016-04-14 22:24:42 +03:00
John Preston
246e39adb1
Fixed Xcode build, improved project folders (similar to MSVC), warnings fixed.
2016-04-14 16:03:03 +03:00
John Preston
68a9a0a12e
Text copy from HistoryItem/HistoryMedia/combined is done and tested.
...
Moved text module to ui/text/ and split it to several modules.
Xcode build currently broken.
2016-04-14 14:00:23 +03:00
John Preston
c4a7d48d96
Selection of text in attachments: captions, web page previews.
...
Text/HistoryItem/HistoryMedia::getState() unified.
Text::getStateElided added. Tested with web page previews only.
2016-04-13 21:29:32 +03:00
John Preston
5a3fea05ac
ClickHandler, TopBarWidget and Overview layouts moved to separate files.
...
Xcode and QtCreator builds are currently broken.
2016-04-13 00:31:28 +03:00
John Preston
576239166d
Removed RefPair struct. Beta 9040128.
2016-04-11 15:14:54 +04:00
John Preston
e0d6a68554
Encapsulated unreadCount and mute fields in History.
...
Support for hiding all muted chats from the list.
2016-04-11 14:59:01 +04:00
John Preston
03bbb2269d
Info button replaced by userpic in single column layout.
...
Icons for file inline results never display a download icon.
Using !lastMsg->detached() to detect that all new messages are loaded.
2016-04-11 11:43:40 +04:00
John Preston
460e2ec0ac
UniquePointer > std_::unique_ptr, MakeUnique > std_::make_unique.
2016-04-10 23:20:48 +04:00
John Preston
fe59c815b2
HistoryMedia always holds a pointer to its parent HistoryItem.
...
Using local cached data when sending media inline bot results.
2016-04-10 18:53:01 +04:00
John Preston
7bba52fb7e
Refactored dialogs structs.
...
Moved DialogRow, FakeDialogRow, DialogsList and DialogsIndexed
from history module to dialogs/ folder, for all struct -> class.
2016-04-09 22:45:55 +04:00
John Preston
90b2b240ce
Merged with master.
2016-04-09 15:15:23 +04:00
John Preston
fa0c700ca6
Inline switch to pm and back support added for inline bots.
2016-04-08 18:16:52 +04:00
John Preston
8e89486fbc
Error handling changed, 'auto' keyword used for MTP types.
...
All errors that lead to MTP request resending by default
error handler now can be handled differently. For example
inline bot requests are not being resent on 5XX error codes.
+ extensive use of auto keyword in MTP types handling.
2016-04-08 14:44:35 +04:00
John Preston
35d5089f48
Scroll following the inline bot keyboard when message is edited.
2016-04-08 13:20:10 +04:00
John Preston
9af094e278
Toast notification for bot callback result added. Xcode build broken.
2016-04-08 11:12:48 +04:00
John Preston
a37bbcfaca
Fixed building in Xcode.
2016-04-07 14:35:09 +04:00
John Preston
db387d50b8
Scheme updated, support for via @bot added to stickers.
2016-04-07 14:03:10 +04:00
John Preston
1bc834bd5e
Sending icon is displayed in the inline keyboard callback button.
2016-04-06 21:02:22 +04:00
John Preston
a728dcfca8
Sticker preview done for inline bot results.
...
ReplyMarkupClickHandler moved to .cpp (implementation details).
2016-04-06 19:32:05 +04:00
John Preston
1947d8e5be
Click on sticker now opens sticker pack, if the sticker is from pack.
2016-04-06 16:02:00 +04:00
John Preston
80b0667ff9
Requesting getDifference if some users or channels are not loaded
...
while processing updateNewChannelMessage update.
2016-04-06 15:07:05 +04:00
John Preston
259a996276
Scheme updated. Inline bot result messages now may have reply markup.
...
Fully applying media from send inline bot result response.
2016-04-06 12:00:37 +04:00
John Preston
1ef944ed7b
Not inline bot keyboard now supports editing as well.
...
Styles improved for not inline bot keyboard.
Full crash string adding to crash report.
Preparing to leave source code without #include "stdafx.h"
2016-04-01 19:32:26 +04:00
John Preston
0e0956451a
MTP_bytes() replaces MTP_string() for QByteArray payload.
...
Scheme updated for bot callbacks sending data bytearrays.
ReplyKeyboard edition is supported when editing the messages.
2016-04-01 14:23:40 +04:00
John Preston
fa4137418a
Merged with master.
2016-04-01 12:54:32 +04:00
John Preston
f1dfcef868
Styles improved for unread bar margins and sticker timestamp.
...
Possible crash fixes: emoji color picker show, pending repaint
items cleared when history items are cleared.
Deleting MainWidget syncroniously when clearWidgets() is called.
2016-03-31 18:06:40 +04:00
John Preston
40fddc9697
UniquePointer backported. Fixed unifying of adding new history items.
2016-03-31 15:18:21 +04:00