Commit Graph

320 Commits

Author SHA1 Message Date
John Preston 22a85016e3 Show rank in anonymous outgoing messages. 2020-10-06 10:23:58 +03:00
John Preston 616531b0d0 Fix author signature in discussion posts. 2020-10-05 16:21:34 +03:00
John Preston 473803edb8 Fix comments button getState / remove. 2020-10-05 16:21:34 +03:00
John Preston bd1a46252d Show admin rank for anonymous posts. 2020-10-01 12:57:03 +03:00
John Preston 81457693f1 Don't add comments button for inline markup messages.
Fixes #8664.
2020-10-01 11:44:08 +03:00
John Preston 3a700650be Remove comments info if no info in server data. 2020-10-01 11:34:59 +03:00
John Preston 719bed6e85 Move some text formatting to tg_ui:ui/text/format_values. 2020-09-30 16:29:17 +03:00
John Preston 891b4a91a3 Generate correct links to replies section. 2020-09-29 19:03:28 +03:00
John Preston 13ad590a51 Track inbox/outbox comments/replies read state. 2020-09-29 19:03:27 +03:00
John Preston ab429212e5 Respect global group read position in replies. 2020-09-29 19:03:27 +03:00
John Preston 7862443fcb Show comments button for unwrapped medias. 2020-09-29 19:03:26 +03:00
John Preston 883c3ecf65 Improve root message layout in Replies section. 2020-09-29 19:03:25 +03:00
John Preston 59abe95754 Show comments unread status. 2020-09-29 19:03:25 +03:00
John Preston 3a51303fb0 Add go to original button to Replies chat. 2020-09-29 19:03:25 +03:00
John Preston be14456290 Show correct reply in Replies bot. 2020-09-29 19:03:24 +03:00
John Preston 47170da813 Show comments button using 'has_link' flag. 2020-09-29 19:03:24 +03:00
John Preston b8424b1d89 Add read status tracking to comments. 2020-09-29 19:03:24 +03:00
John Preston d42ce87c09 Move discussion group link to three-dot menu. 2020-09-29 19:03:23 +03:00
John Preston 60002555c3 Track comments count correctly. 2020-09-29 19:03:23 +03:00
John Preston fb20be3e6c Open channel comments, not replies. 2020-09-29 19:03:23 +03:00
John Preston 31e1ed216a Add comments button to channel posts. 2020-09-29 19:03:23 +03:00
John Preston 55edb3bdfe Update API scheme to layer 119. Count replies. 2020-09-29 19:03:18 +03:00
23rd 46cce57f6b Removed display post views for sent forwarded scheduled messages. 2020-07-20 21:44:07 +03:00
23rd 69bc595e31 Fixed text loss when editing media content is canceled. 2020-07-17 18:22:38 +03:00
23rd 5c097887ef Added ability to edit media in scheduled messages. 2020-07-17 18:22:38 +03:00
Sean Wei 556aa28df6 Remove unused variable
The following are commits related to removed variables.

apiwrap.cpp
e050e27: kSaveDraftBeforeQuitTimeout

app.cpp
113f665: serviceImageCacheSize

boxes/auto_download_box.cpp
a0c6104: checked(Source source, Type type)

boxes/background_preview_box.cpp
b6edf45: resultBytesPerPixel
fe21b5a: ms

boxes/calendar_box.cpp
ae97704: yearIndex, monthIndex
99bb093: ms

boxes/connection_box.cpp
f794d8d: ping

boxes/dictionaries_manager.cpp
8353867: session

boxes/peer_list_box.cpp
2ce2a14: grayedWidth

boxes/peers/add_participants_box.cpp
07e010d: chat, channel

boxes/self_destruction_box.cpp
fe9f02e: count

chat_helpers/emoji_suggestions_widget.cpp
a12bc60: is(QLatin1String string)

chat_helpers/field_autocomplete.cpp
8c7a35c: atwidth, hashwidth

chat_helpers/gifs_list_widget.cpp
ff65734: inlineItems
3d846fc: newSelected
d1687ab: kSaveDraftBeforeQuitTimeout

chat_helpers/stickers_dice_pack.cpp
c83e297: kZeroDiceDocumentId

chat_helpers/stickers_emoji_pack.cpp
d298953: length

chat_helpers/stickers_list_widget.cpp
eb75859: index, x

core/crash_reports.cpp
5940ae6: LaunchedDateTimeStr, LaunchedBinaryName

data/data_changes.cpp
3c4e959:clearRealtime

data/data_cloud_file.cpp
4b354b0: fromCloud, cacheTag

data/data_document_media.cpp
7db5359: kMaxVideoFrameArea

data/data_messages.cpp
794e315: wasCount

data/data_photo_media.cpp
e27d2bc: index

data/data_wall_paper.cpp
b6edf45: resultBytesPerPixel

data/data_types.cpp
aa8f62d: kWebDocumentCacheTag, kStorageCacheMask

history/admin_log/history_admin_log_inner.cpp
794e315: canDelete, canForward

history/history_location_manager.cpp
60f45ab: kCoordPrecision
9f90d3a: kMaxHttpRedirects

history/history_message.cpp
cedf8a6: kPinnedMessageTextLimit

history/history_widget.cpp
b305924: serviceColor
efa5fc4: hasForward
5e7aa4f: kTabbedSelectorToggleTooltipTimeoutMs, kTabbedSelectorToggleTooltipCount

history/view/history_view_context_menu.cpp
fe1a90b: isVideoLink, isVoiceLink, isAudioLink

settings.cpp
e2f54eb: defaultRecent

settings/settings_folders.cpp
e8bf5bb: kRefreshSuggestedTimeout

ui/filter_icon_panel.cpp
c4a0bc1: kDelayedHideTimeoutMs

window/themes/window_theme_preview.cpp
ef927c8: mutedCounter

-----

Modified variables

boxes/stickers_box.cpp
554eb3a: _rows[pressedIndex] -> set

data/data_notify_settings.cpp
734c410: muteForSeconds -> muteUntil

history/view/history_view_list_widget.cpp
07528be: _items[index] -> view
e5f3bed: fromState, tillState

history/history.cpp
cd3c1c6: kStatusShowClientsideRecordVideo -> kStatusShowClientsideRecordVoice

storage/download_manager_mtproto.cpp
ae8fb14: _queues[dcId] -> queue

storage/localstorage.cpp
357caf8: MTP::Environment::Production -> production
2020-07-13 09:33:55 +04:00
23rd b629e0c43a Replaced Notify::replyMarkupUpdated with Data::MessageUpdate. 2020-06-29 06:26:02 +04:00
John Preston 357caf8007 Keep separate MTP::Config's for separate accounts. 2020-06-23 21:53:41 +04:00
John Preston 3c4e959468 Replace observer_peer with rpl interface. 2020-06-23 21:53:40 +04:00
John Preston 03dec15e8e Pass Main::Session to click handler creators. 2020-06-23 21:53:38 +04:00
John Preston 4b354b0928 Use Main::Session in download/upload. 2020-06-23 21:53:38 +04:00
John Preston 3878a1b212 Remove some more Auth() calls. 2020-06-23 21:53:38 +04:00
John Preston 099482574e Fix sending stickers from inline bots.
Fixes #8020.
2020-06-16 20:53:44 +04:00
John Preston bdbcd8e540 Use Main::Session in entities parsing. 2020-06-08 12:05:17 +04:00
23rd 41255cab44 Removed display views and author for sent scheduled messages.
Moved filling of post flags to a single place.
2020-05-20 12:41:44 +04:00
John Preston 038d8f1781 Force non-empty text in message bubbles. 2020-05-04 17:03:47 +04:00
John Preston c14e20b33f Support PSA forwarded info. 2020-04-30 11:35:01 +04:00
John Preston 3fa5e004fe Allow editing messages in channels indefinitely. 2020-04-23 16:21:30 +04:00
John Preston 3e2f4bed50 Update scheme to layer 102.
Support different dice-like media.
2020-04-21 18:55:34 +04:00
John Preston c83e297554 Implement dice media display. 2020-03-27 20:36:02 +04:00
John Preston ed715fb810 Update API scheme to layer 111. 2020-03-27 20:36:01 +04:00
John Preston 818f5cd004 Send and delete messages through Histories. 2020-02-21 18:48:30 +04:00
John Preston fedf29adb1 Fix timestamp highlights when editing media. 2019-12-27 15:15:16 +03:00
John Preston 1ba052cc13 Highlight timestamps in replies to media. 2019-12-27 13:41:30 +03:00
John Preston a6c84c36c0 Use layers and boxes from lib_ui. 2019-10-19 12:27:52 +04:00
John Preston 60640c7087 Version 1.8.12: Fix 'edited' badge display. 2019-10-02 12:08:31 +03:00
John Preston 849deb57e2 Move many widget classes to lib_ui. 2019-10-01 23:59:46 +03:00
John Preston 0c713a930a Remove app.h / facades.h from precompiled header. 2019-10-01 23:59:46 +03:00
John Preston c1ab1acd44 Fix crash in scheduled messages 'Send Now'. 2019-09-09 17:43:39 +03:00
John Preston 5f26e92f5c Fix scheduled messages from ShareBox.
Fixes #6497.
2019-09-08 21:26:17 +03:00
John Preston 6343221d7b Remove many includes from stdafx.pch. 2019-09-06 19:31:07 +03:00
John Preston d95e54cb1a Check if it is possible to 'Send now.' 2019-08-30 16:17:46 +03:00
John Preston 07f45b7eab Improve published scheduled notifications. 2019-08-29 10:01:28 +03:00
John Preston 0a4f91a53d Notify about published scheduled messages. 2019-08-29 10:01:28 +03:00
John Preston caef7dde24 Bundle silent and scheduled to Api::SendOptions. 2019-08-27 19:10:37 +03:00
John Preston 694f771131 Allow to send scheduled messages instantly. 2019-08-27 19:10:37 +03:00
John Preston 3814b0833d Keep track of scheduled messages. 2019-08-27 19:10:37 +03:00
John Preston 549789bfb7 Update API scheme to layer 105. 2019-08-27 19:10:37 +03:00
John Preston e1fe373504 Fix localtime-related slowmode errors. 2019-08-20 12:42:37 +03:00
John Preston 1139a59818 Fix crash in editing message to empty. 2019-08-19 15:26:12 +03:00
John Preston 02b65a42f7 Move message client flags to a separate field. 2019-08-09 20:19:23 +01:00
John Preston d7f7a03eb4 Don't refresh large emoji messages when sent. 2019-08-09 11:51:35 +01:00
John Preston d298953653 Add large emoji implementation. 2019-08-09 11:50:49 +01:00
John Preston 7e4c9f98a6 Track all single-emoji messages. 2019-08-09 11:50:49 +01:00
John Preston 80fedcbbae Improve slowmode error phrases. 2019-08-09 11:50:49 +01:00
John Preston 27d84befa8 Remove emoji from custom admin ranks. 2019-07-28 15:39:06 +02:00
John Preston 3f2cc01f48 Allow sending silent messages. 2019-07-27 17:19:04 +02:00
John Preston bacaf805b5 Pass SessionNavigation to some boxes. 2019-07-25 20:55:11 +02:00
John Preston ff44094ded Rename AuthSession to Main::Session. 2019-07-24 13:45:24 +02:00
John Preston 06982fdf04 Remove some calls to Auth(). 2019-07-24 13:13:51 +02:00
John Preston 2ed5552279 Improve custom badge input phrases. 2019-07-24 08:02:20 +02:00
John Preston 3f1a2d0b58 Support emoji in custom admin badges. 2019-07-24 08:02:20 +02:00
John Preston f36e2981ca Display custom admin ranks in messages. 2019-07-24 08:02:20 +02:00
John Preston 22f210ea8e Support sending albums to slowmode groups. 2019-07-24 08:02:20 +02:00
John Preston 4a10a88ecf Show error when forwarding to slowmode group. 2019-07-24 08:02:20 +02:00
John Preston 873b77cf40 Use UserData::isBot where applicable. 2019-07-24 08:02:20 +02:00
John Preston 0005e0a3ce Track local messages, restore on history jump. 2019-07-24 08:02:20 +02:00
John Preston 567bf60644 Use getters in MTP classes. 2019-07-05 16:23:07 +02:00
John Preston 3ca28c0cf9 Fix crash in unsupported message with buttons.
Fixes #6212.
2019-07-05 09:42:51 +02:00
23rd f877bf7a46 Fixed display of views count. 2019-06-22 11:53:23 +02:00
John Preston 7d585ab72f Handle located groups as public. 2019-06-21 14:27:46 +02:00
John Preston 87fc066e67 Use tr:: instead of lang(). 2019-06-21 11:06:51 +02:00
John Preston a547f80ae9 Rename Window::Controller to Window::SessionController. 2019-06-06 13:21:40 +03:00
John Preston ea61211a61 Version 1.7.2: Mix peer to grouped_id. 2019-06-01 00:51:57 +03:00
John Preston a64c8c52b4 Correctly display discussion posts sender. 2019-05-27 15:09:56 +02:00
John Preston 87caa58456 Forward some inline keyboards. 2019-05-27 15:09:52 +02:00
John Preston 6b9675a5b1 Correctly display discussion posts. 2019-05-27 15:09:50 +02:00
John Preston 8aaaef3ff4 Show 'channel' badge for discussed messages. 2019-05-27 15:09:45 +02:00
John Preston 9c1ce702bb Display channel posts in discussion groups. 2019-05-27 15:09:28 +02:00
John Preston c4aac5fa0e Update API scheme to layer 100. 2019-05-27 15:09:06 +02:00
John Preston 9a4fdb1530 Use only lt_count in langpacks. 2019-05-20 15:44:51 +03:00
23rd 63a6893fda Excluded ability to display 0 views in channel posts. 2019-05-20 15:44:51 +03:00
23rd 5d321f7c59 Moved generation of short string for large numbers in one place.
- Added new plural tag "kPluralShortTag".
 - Added support of new plural tag to code generator.
 - Removed FormatViewsCount from history_message.
 - Removed FormatLargeNumber from history_media_poll.
 - Added FormatCountToShort to lang_tag.
2019-05-20 15:44:51 +03:00
John Preston 08bddc5579 Move messages data to AuthSession. 2019-05-01 16:11:42 +04:00
John Preston b5be6df5e2 Copy text with expanded links only to external.
Paste valid custom links in message field if copied from messages.
2019-04-08 19:10:06 +04:00
John Preston ff51423125 Remove ExpandLinksNone, rename Text::originalText. 2019-04-08 15:53:11 +04:00
John Preston fb244c00b9 Fix local history clearing. 2019-04-08 13:16:45 +04:00
John Preston 0744f43a0e Create private channel post links. 2019-04-04 19:31:02 +04:00
23rd a6d0fa433e Refactored variables for edit media in HistoryItem.
- Replaced _isLocalUpdateMedia with client flag.
 - Removed _isEditingMedia.
2019-04-04 13:23:14 +03:00
23rd 590e6c8e9d Fixed ability to cancel edit media in albums. 2019-04-02 18:14:12 +04:00