Commit Graph

330 Commits

Author SHA1 Message Date
John Preston 01d763eed1 Use DocumentData::getDuration for all types. 2019-03-11 12:08:15 +04:00
23rd f48d8538c0 Added ability to see attached stickers on photos. 2019-03-10 22:10:36 +04:00
23rd bfc9e43eb4 Added a handler for "MESSAGE_EMPTY" error to delete a local message.
- Added a determination of the zero-width-space as the space.
 - Fixes #3145.
2019-03-10 10:26:40 +04:00
23rd c2ad765424 Fixed extra space in a name of the post author after forwarding message. 2019-03-09 13:41:39 +04:00
John Preston fe618bd652 Use crl::time/now instead of TimeMs/getms. 2019-02-19 11:06:33 +04:00
23rd 193e454fd4 Fixed sending polls as reply to other messages.
Fixes #5550.
2019-02-17 15:55:44 +04:00
John Preston 95565c39ed Upload wallpapers to the cloud. 2019-02-08 19:20:08 +03:00
John Preston f506a5ea6c Save wallpaper settings locally. 2019-01-29 14:52:33 +03:00
John Preston a1baa23a52 Use both thumbnails in photos and documents.
Fixes #5602.
2019-01-28 13:10:45 +03:00
John Preston a70e72f75d Application->Sandbox, Messenger->Application. 2019-01-23 12:51:58 +04:00
John Preston 4111da1dd0 Move some calls from App namespace. 2019-01-22 17:10:01 +04:00
John Preston 7df5df6351 Improve phrases for removed users. 2019-01-21 10:26:19 +04:00
John Preston 61b9a32504 Add 'Contact joined' notifications setting. 2019-01-18 16:41:08 +04:00
John Preston 1894b8fcf7 Handle t.me/bg links with wallpapers / colors. 2019-01-18 16:41:07 +04:00
John Preston e59a68cd68 Refresh wallpaper file references. 2019-01-17 12:21:31 +04:00
John Preston 287b3509ab Optimize getPeerDialog requests. 2019-01-17 12:21:31 +04:00
John Preston 2a0b9a44dd Remove supergroup migrate messages. 2019-01-17 12:21:31 +04:00
John Preston 9728ddeaf9 Handle migration to supergroups in boxes. 2019-01-17 12:21:30 +04:00
John Preston 3c44bdb6b7 Support auto-migrate to supergroups. 2019-01-17 12:21:30 +04:00
John Preston 67d12fa6d2 Improve update handling for legacy chats. 2019-01-17 12:21:30 +04:00
John Preston dba9ca2084 Replace TLHelp helpers with .match() 2019-01-17 12:21:30 +04:00
John Preston a605c110a8 Support legacy groups in participant boxes. 2019-01-17 12:21:29 +04:00
John Preston 18c6be0d3b Unify legacy and megagroups information edit. 2019-01-17 12:21:29 +04:00
John Preston eff90395b6 Add EditPeerPermissionsBox. 2019-01-17 12:21:29 +04:00
John Preston 61419b57c8 Prepare legacy group restrictions checking. 2019-01-17 12:21:29 +04:00
John Preston c5a41e1f55 Divide data/data_peer and remove from PCH. 2019-01-17 12:21:29 +04:00
John Preston d2d6b319b6 Update API scheme to layer 93. Broken. 2019-01-17 12:21:28 +04:00
John Preston 1f8626b383 Move App::histories to Data::Session. 2019-01-17 12:21:28 +04:00
John Preston 4002739682 Suggest adding bots to channels as admins. 2018-12-28 15:42:58 +04:00
John Preston b00ca217b3 Don't autoread mentions with voice/video messages.
Voice/video message unread flag is the same that mention unread flag.
If we mark such mentions as read together with all others we mark
media as watched/listened instantly when they appear on the screen.

So now we mark as read only simple mentions, without "unread" media.
2018-12-26 14:30:55 +04:00
John Preston 7b5e5c2587 Move caption to the next album item on cancel.
After #4869 albums are sent with captions in the first media.
In case we cancel the first media leaving the rest of the album
the caption will be lost unless we move it to the new "first" media.
2018-12-26 11:24:12 +04:00
John Preston 096c310e0e Display consistent caption/comment placeholder.
After latest PRs regarding sticker sending with comment (#5500)
and album sending with caption (#4869) the input field placeholder
in SendFilesBox was inconsistent with the sending behaviour. Fix it.
2018-12-26 10:53:21 +04:00
John Preston 6f176803d4 Reload poll data each 30 seconds without update. 2018-12-24 21:03:53 +04:00
23rd c7c1deab81 Add caption to first item of album istead of sending separated message. 2018-12-24 17:12:18 +04:00
23rd d1a9f1feac Fixed caption when sending single WEBP as file. 2018-12-23 00:27:36 +04:00
John Preston 93c8e9aa1f Add poll vote sending animation. 2018-12-22 23:32:04 +04:00
John Preston b6f7832745 Add create poll box from groups three-dot menu. 2018-12-22 10:29:03 +04:00
John Preston 74c1db740d Implement polls voting and actions. 2018-12-21 17:09:33 +04:00
John Preston 6d08394adc Divide history_media_types to several modules. 2018-12-21 17:09:31 +04:00
John Preston 47bdeeef9a Poll data and updates handling added. 2018-12-21 17:09:31 +04:00
John Preston 099440d008 Add test poll sending code. 2018-12-21 17:09:30 +04:00
John Preston eb7201a55b Strictly match message / media types. 2018-12-21 17:09:30 +04:00
John Preston 61add763ae Restart instead of Unblock for bots. 2018-12-04 15:46:07 +04:00
John Preston 59ecf375b0 Move tg:// handlers to a separate module.
Also move joinGroupByHash and stickerSetBox from MainWidget.
2018-11-26 17:31:13 +04:00
John Preston 9a8ab84ecb Add edit / view of user information for support. 2018-11-20 19:50:36 +04:00
John Preston 4960e08a24 Display occupied chats using drafts for support. 2018-11-20 19:38:39 +04:00
John Preston be3e43e6cb Confirm 2sv recovery email by code. 2018-11-20 19:38:39 +04:00
John Preston 8d27d8efcf Use cloud-based settings for p2p in calls. 2018-11-16 20:17:58 +04:00
John Preston 36b702702b Support [inputN|n]otifyBroadcasts setting. 2018-11-16 20:17:58 +04:00
John Preston 75db59a8bb Fix user and chat flags handling. 2018-11-16 20:17:58 +04:00