John Preston
235484b719
Fix saving group type without changing username.
2021-12-02 15:26:58 +04:00
John Preston
40330afbd3
Use distinct strings for groups / channels noforwards.
2021-11-30 18:09:06 +04:00
John Preston
4cb6e4b787
Allow group / channel type box if !can_edit_username.
2021-11-26 18:00:20 +04:00
John Preston
7d89952541
Edit noforwards in group / channel type.
2021-11-26 18:00:20 +04:00
23rd
6148edbc7d
Moved ConfirmBox to td_ui.
2021-10-19 06:34:27 +03:00
23rd
b776308fd7
Moved some constants for peer editing to separated file.
2021-10-19 06:34:27 +03:00
Ilya Fedin
ba9b72e038
Fix -Wunused-variable warnings with gcc
2021-07-19 22:31:27 +03:00
John Preston
68b0a85369
Rename RPCError to MTP::Error.
2021-03-12 16:58:26 +04:00
John Preston
d188ab6719
Fix other admins links management.
2021-02-22 23:42:40 +04:00
John Preston
4153603d09
Add ability to see invite links of other admins.
2021-02-22 23:42:40 +04:00
John Preston
9d3edb785c
Return rich invite links section.
2021-02-22 23:42:40 +04:00
John Preston
5538c5eace
Add 'Invite via Link' button to Add Members box.
2021-02-01 22:36:40 +04:00
John Preston
34ec1c371c
Return invite-link-only box.
2021-02-01 19:10:59 +04:00
John Preston
5092d8fe63
Version 2.5.8: Fix invite link export if absent.
2021-01-29 23:49:20 +04:00
John Preston
36ad24bfcd
Update API scheme.
2021-01-25 17:42:02 +04:00
John Preston
50c07bfc98
Update API scheme, add view link box.
2021-01-25 16:50:58 +04:00
John Preston
1cce383d15
Add a box to create / edit invite links.
2021-01-25 16:47:41 +04:00
John Preston
01ecf0ca93
Show invite links list with context menu.
2021-01-25 16:47:41 +04:00
John Preston
7132ab5bf4
Fix long content in group type box.
2021-01-25 16:47:41 +04:00
John Preston
754dedc40e
Improve permanent link edit design.
2021-01-25 16:47:40 +04:00
John Preston
e5320b4b4e
Implement new permanent invite link management.
2021-01-25 16:47:40 +04:00
John Preston
02ad5f2772
Update API scheme and start invite links.
2021-01-25 16:47:40 +04:00
23rd
f81271d1fe
Simplified confirmed callback for ConfirmBox instances.
2020-09-29 19:03:29 +03:00
23rd
e318a7d65f
Simplified ranges::find_if with ranges::any_of and ranges::none_of.
2020-06-23 21:53:43 +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
0ad7dcaef9
Remove MTP::MainInstance() global access point.
2020-06-23 21:53:40 +04:00
John Preston
e943264823
Pass MTP::Instance to MTP::Sender.
2019-11-29 15:36:05 +03:00
Nicholas Guriev
793862bee6
Fix -Wredundant-move and -Wdeprecated-copy warnings ( #6663 )
...
* Do not move result at end of function
This makes GCC 9.1.2 happy with the active -Wredundant-move warning.
Indeed, such moving of local variables or local arguments before
returning is unnecessary and prevents the compiler from copy elision
optimization.
2019-11-12 18:15:34 +03:00
John Preston
a6c84c36c0
Use layers and boxes from lib_ui.
2019-10-19 12:27:52 +04:00
John Preston
849deb57e2
Move many widget classes to lib_ui.
2019-10-01 23:59:46 +03:00
John Preston
6343221d7b
Remove many includes from stdafx.pch.
2019-09-06 19:31:07 +03: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
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
a7c8feaecb
Use tr:: instead of langFactory and __rich.
2019-06-21 11:06:50 +02:00
John Preston
d1d98c3bb1
Use tr:: instead of langFactory in box titles.
2019-06-21 11:06:50 +02:00
John Preston
8ed433cc01
Use tr:: instead of langFactory in input fields.
2019-06-21 11:06:49 +02:00
John Preston
7af0dd105e
Use tr:: instead of Lang::Viewer.
2019-06-21 11:06:49 +02:00
John Preston
a547f80ae9
Rename Window::Controller to Window::SessionController.
2019-06-06 13:21:40 +03:00
John Preston
50778790fe
Start supporting channel discussion groups.
2019-05-27 15:09:25 +02: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
23rd
ca9db9fd3f
Refactored code.
...
- Removed std::optional from EditPeerHistoryVisibilityBox.
- Added std::optional for savedCallback in EditPeerTypeBox.
- Guarded boxCallbacks.
2019-03-22 13:40:23 +04:00
John Preston
e0d7cae3fe
Fix build for macOS.
2019-03-22 13:40:23 +04:00
John Preston
241526f127
Improve code style a bit.
2019-03-22 13:40:22 +04:00
23rd
5edf200157
Fixed focus in EditPeerTypeBox. Slightly refactored code.
2019-03-22 13:40:22 +04:00
23rd
bd7ba3acb1
Refactored code.
...
- Slightly improved design.
- Added "const" in EditPeerTypeBox & EditPeerInfoBox.
2019-03-22 13:40:22 +04:00
23rd
e024d9bbb0
Added opening EditPeerTypeBox when error of saving username was handled.
2019-03-22 13:40:22 +04:00
23rd
3d7b8b3162
Added Invite Link button. Refactored code.
...
- Removed unused includes.
- Improved design for boxes.
- Draw buttons for EditPeerInfoBox in single place.
- Simplified conditions for all buttons.
- Made AddSkip more flexible.
2019-03-22 13:40:22 +04:00