Commit Graph

287 Commits

Author SHA1 Message Date
John Preston 291f483671 Allowing to choose bots in appoint supergroup admin box.
Better naturalHeight() for bot keyboards. We try to make all
the buttons in the row have equal size (size of the largest button).
2016-04-14 15:00:44 +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 b07cd1264c Version 0.9.42: critical bug fix in contacts box, message edit fix. 2016-04-12 11:13:03 +03: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 460e2ec0ac UniquePointer > std_::unique_ptr, MakeUnique > std_::make_unique. 2016-04-10 23:20:48 +04:00
John Preston dd1d04e9b0 Inline bot results preview: photo, audio, file, voice. Beta 9040126. 2016-04-10 22:18:26 +04:00
John Preston 5f12c6d85b Always create photo and document for inline bot results. 2016-04-10 15:13:37 +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 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 04f8d4dd37 Build fixed for renamed sources folder SourceFiles/{gui->ui}/ 2016-04-07 22:05:28 +04:00
John Preston db387d50b8 Scheme updated, support for via @bot added to stickers. 2016-04-07 14:03:10 +04:00
John Preston 730dce2cdc telegram.me links open without confirmation box.
EmailClickHandler removed, only UrlClickHandler left.
Some errors lead to @spambot instead of site FAQ.
2016-04-06 17:19:25 +04:00
John Preston 35785efa50 Inline bot video and sticker layout and sending done. 2016-04-03 13:11:41 +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 8cde13fb8c Scheme updated, not channel messages editing updates handled. 2016-03-30 21:13:07 +04:00
John Preston b981472877 Bot keyboard button with type url / callback / phone / location
now can be displayed with an icon in the upper-right corner.

Inline bot keyboards almost done.
2016-03-30 20:42:01 +04:00
John Preston 7f6cf32cdd ITextLink moved to ClickHandler, TextLinkPtr > ClickHandlerPtr.
Global methods textlnkOver/Down/DrawOver were replaced by
static members of ClickHandler, now global state consists
of the handler pointer + host pointer, who declares callbacks
for the active and pressed handler changed events.

This will allow to use ClickHandler from different hosts
simultaneously (like HistoryItem / BotDescription / BotKeyboard).

Not yet tested.
2016-03-29 20:17:00 +03:00
John Preston 559a74847b OrderedSet class done using QMap as implementation,
instead of inheriting it, fixed replies delete code.
2016-03-25 18:20:34 +03:00
John Preston 599ede9a0b Beta 9034004 version:
Some lang grammar fixes, all "audio" changed to "voice message"
PeerData can have three loaded states (not loaded, minimal, full)
Interface/Interfaces renamed to Component/Composer
HistoryReply moved to a Component named HistoryMessageReply
2016-03-25 14:29:45 +03:00
John Preston b86d8638bc Fixed not loaded messages with bot keyboard display
Fixed saved gifs row layout
Removed information about channel members count / left to invite
in invite-to-channel box (channels have no participants limit)
2016-03-24 20:30:31 +03:00
John Preston 978e86a8ba bubble enlarged for signed thumbed files, error string display added for group/channel create error 2016-03-24 18:31:11 +03:00
John Preston 605f5305e4 Changed all .. to ... in phrases 2016-03-24 18:07:13 +03:00
John Preston ddd63d73b7 MTP::nonce -> rand_value, fixed first_name and last_name reading from minimal users 2016-03-24 13:12:18 +03:00
John Preston a2f5acdff1 some winrt macro changes 2016-03-20 21:34:20 +03:00
John Preston 0b2bcbc3e9 some warnings fixed, TDESKTOP_DISABLE_NETWORK_PROXY macro added 2016-03-20 11:16:35 +03:00
John Preston 2ef8c44445 all MTP flags made strictly typed by scoped enums, in-message date display added for non-service messages 2016-03-19 19:55:15 +03:00
John Preston baf1e31b76 circled profile images 2016-03-18 13:18:30 +03:00
John Preston b9616bdf75 some crashes fixed, 0.9.34 dev version 2016-03-16 16:29:44 +03:00
John Preston c2f1e95f3f fixed opening of uncompressed image sent from clipboard, intro refactoring finished 2016-03-16 14:54:37 +03:00
John Preston 3a8824a9a6 intro rewrite started, new code sending methods 2016-03-14 19:59:18 +03:00
John Preston b38163b026 adding / removing lastParticipants / lastAdmins in supergroups on adding / removing users / admins 2016-03-14 09:10:24 +03:00
John Preston 0249d3fe61 improved create group / add members box, displaying info about supergroup when trying to add more than 200 members there 2016-03-13 19:01:43 +03:00
John Preston 86a4a388c3 ban / report / deleteAll done in MainWidget instead of RichDeleteMessageBox 2016-03-13 18:45:00 +03:00
John Preston 588de7966f fixed langs for group creating and converting 2016-03-11 20:15:49 +03:00
John Preston 0913833f6c can_set_username bit support added 2016-03-11 18:21:05 +03:00
John Preston 5cab9569c3 updating edited messages dependencies (replies, edit / reply / pinned bar), postponing notification about pinned message while the message itself is not yet available 2016-03-11 15:20:58 +03:00
John Preston b402d832f6 deleting all messages by from on client side 2016-03-11 14:13:28 +03:00
John Preston 98e2700764 rich delete all + ban almost done in supergroups (need to clear messages on the client side as well) 2016-03-10 18:42:01 +03:00
John Preston efa5fc443a pin/unpin messages in supergroups, local hide for pinned messages 2016-03-10 13:15:21 +03:00
John Preston 420e82d421 fixed pinned msg service message, fixed markdown stickerpack link, fixed phrase for convert group to supergroup 2016-03-06 19:06:05 +02:00
John Preston 2bfb1e0f1f convert to supergroup in all groups 2016-03-05 00:04:15 +02:00
John Preston cb78bd1a10 public links display / edit done in megagroups 2016-03-04 18:47:48 +02:00
John Preston 0072573925 pinned message api used, ordering by online and displaying online count in small megagroups 2016-03-04 17:34:46 +02:00
John Preston 2b6e30bcb5 silent broadcast done 2016-02-25 19:19:54 +03:00
John Preston 1313cd1a33 lang updated 2016-02-25 18:05:36 +03:00
John Preston 9c8ae7f32b improved media caption edit in box, need to make post edit in message field 2016-02-23 17:31:06 +03:00
John Preston 29fefbc4bb post edit started, sign messages checkbox added in channel edit by creator 2016-02-21 15:30:16 +03:00
John Preston 803d1a429d scheme updated, config vars moved to Global namespace 2016-02-18 19:36:33 +03:00
John Preston 7433cea0fd fixed copy selected text, post author display added, post links handling added, windows bingmaps opening added, sticker previews from mentionsdropdown and stickersetbox added 2016-02-17 19:37:21 +03:00
John Preston 189d0e8de3 voice messages moved to documents with waveforms 2016-02-12 19:35:06 +03:00
John Preston 0b8523d58e added year 2016 to copyright 2016-02-08 13:56:18 +03:00
John Preston a0d171bb49 moved minizip to ThirdParty, added google breakpad to ThirdParty for windows (mac, linux broken) 2016-01-31 21:01:43 +03:00
John Preston 17a319fdb3 improved crash reports for linux 2016-01-31 19:13:51 +03:00
John Preston d28483fad4 windows and os x crash reports sent and shown 2016-01-30 21:38:33 +03:00
John Preston 340246367d crash report and show done for os x 2016-01-30 21:24:18 +03:00
John Preston 58777dbc21 moved almost all Application to AppClass (autoupdate and singleinstance left), logs rewritten 2016-01-11 23:43:29 +08:00
John Preston fc02f96ef1 via @bot fixed in forwarded, stickers requested in stickersbox, sticker not autoselected in dropdown, forwarded messages to chats fixed from_id and via_bot_id 2016-01-11 12:45:07 +08:00
John Preston b13579c7d9 dev version 0.9.19 sending stickers by emoji 2016-01-09 20:51:42 +08:00
John Preston a72a31e722 stickers by alt suggestions in mentions dropdown 2016-01-09 19:24:16 +08:00
John Preston 35d4754380 caching web files to local, sending of inline bots results done properly, panel ux better for inline bots 2015-12-31 23:27:21 +08:00
John Preston 14839e7afe scheme updated, contextbot -> inlinebot renamed, web file loader done like mtp file loader 2015-12-31 03:09:20 +08:00
John Preston 9a3489694e pasting .gif or .mp4 file send confirm box design improved 2015-12-28 18:58:38 +03:00
John Preston fb7a48ec19 captions for documents done 2015-12-28 16:03:16 +03:00
John Preston 4f6c8f8008 document captions display and adding done 2015-12-28 13:28:00 +03:00
John Preston 9a1798f043 saved gifs done 2015-12-28 00:37:48 +03:00
John Preston 4ed2d75c74 upload radial progress and upload cancel done, photo / file / audio autodownload settings respected 2015-12-24 22:26:28 +03:00
John Preston 7c7d517b34 autoload settings box added, working for voice messages and gifs (photos TODO) 2015-12-24 00:19:57 +03:00
John Preston b94533fcb2 gif autoplay improved 2015-12-23 22:23:14 +03:00
John Preston 0fd6f04aa9 files overview redesign done 2015-12-21 16:14:29 +03:00
John Preston cd700b16c6 files and contacts in PhotoSendBox redesigned 2015-12-19 17:37:28 +03:00
John Preston f6fec9a619 showPeerHistory moved to Ui namespace 2015-12-13 14:36:08 +03:00
John Preston 6ec61d4ad6 redrawHistoryItem moved to Ui, shared contact updates when is_contact changes 2015-12-13 14:17:15 +03:00
John Preston 603fb63c91 document new design done with radial progress, ? char added to monospace blocks edges, redraw history item through Notify:: 2015-12-11 21:11:38 +03:00
John Preston 6d74140e39 documents design improved 2015-12-10 16:37:45 +03:00
John Preston dda1ad987d photos redesigned 2015-12-09 21:06:20 +03:00
John Preston 6bad3b4d7e started media redesign (does not compile!) 2015-12-08 22:07:50 +03:00
John Preston 0b96dd5362 animations refactored 2015-12-08 15:33:37 +03:00
John Preston 6222876ac4 refactored layer methods 2015-12-07 21:09:05 +03:00
John Preston 6b565acbd6 fixed show profile from chats list in single-column layout, requestFullPeer() used in Settings, empty popup menu not shown in HistoryInner, no chat list jump when returning to history, channel admins box layout fixed 2015-12-07 13:06:59 +03:00
John Preston 4b88aced20 fixed uninitialized var for 9014003 2015-12-06 20:47:27 +03:00
John Preston b17c277a62 new beta 9014003 ready - info about last 200 members in channel added, no key destroy after 404 error immidiate after connection 2015-12-06 20:45:04 +03:00
John Preston edf850be55 fixed online color in contacts box, fixed share contact with text, fixed choose in contacts box by Enter key 2015-12-06 20:30:50 +03:00
John Preston 485a6b551f music player glitch fixed, added phrase about the members viewing in channels 2015-12-06 19:28:07 +03:00
John Preston 128cbefe0c improved langs for stickers, fixed confirmed actions from chats context menu, changed AppUserModelId for beta version 2015-12-06 18:50:02 +03:00
John Preston b9e6235018 optimized sticker packs reorder animation for OS X 2015-12-05 15:37:08 +03:00
John Preston de8ffc78d7 fixed code for old Qt versions 2015-12-03 22:55:44 +03:00
John Preston a6cf42d3ad closed beta version with autoupdate added 2015-12-03 21:16:34 +03:00
John Preston ed3601f883 sticker packs management done, conversations list context menu added 2015-12-02 20:17:53 +03:00
John Preston 4487ad9e15 saving QByteArray bookmark along with file paths and download path for OS X sandbox, will be actually implemented only in macstore branch 2015-11-26 20:34:52 +03:00
John Preston 87b57a26ad stop and clear audio on logout, clearing bot keyboards in supergroups 2015-11-24 19:19:18 +03:00
John Preston c80adfc21d supergroup langs updated, insert text instead of cancelled image sending from clipboard fixed 2015-11-24 14:23:14 +03:00
John Preston 3cf4c7f2fc select wrong passcode / password when showing error message 2015-11-24 13:29:37 +03:00
John Preston 583c0e5904 fixed delete chat where you are not participant / deactivated chat, scheme updated 2015-11-19 14:28:17 +03:00
John Preston 497602f47e merged supergroup with migrated group history, loading messages by 3 (temp! testing) 2015-11-13 18:14:33 +03:00
John Preston fd339e401f megagroup members support improved 2015-11-09 12:51:22 +03:00
John Preston ff1b046c17 group > megagroup convert added 2015-11-06 12:48:49 -05:00
John Preston 1d499129ba Merge branch 'dev' of https://github.com/telegramdesktop/tdesktop into groupadmins 2015-11-04 19:11:48 -05:00
John Preston 17e9cd0f6d fixed index images crop in PhotoCropBox 2015-11-04 17:12:13 -05:00
John Preston ede2065c26 megagroups started 2015-11-02 17:33:57 -05:00