Commit Graph

932 Commits

Author SHA1 Message Date
John Preston
361e3565d4 Add raised hand display in participants list. 2021-03-12 16:58:26 +04:00
John Preston
f66d7088ef Support broadcast mode in voice chats. 2021-03-12 16:58:26 +04:00
John Preston
f41abe0a28 Update tgcalls. 2021-03-12 16:58:26 +04:00
John Preston
cfd16c6f67 Ignore version in groupCall updates.
Otherwise we may skip participants update that changes the version.
2021-03-12 16:58:26 +04:00
John Preston
ef1d98f3cf Show about in voice chat channels. 2021-03-12 16:58:26 +04:00
John Preston
bc43168ca7 Add edit voice chat title. 2021-03-12 16:58:26 +04:00
John Preston
b670ca2a51 Allow to rejoin with changing of 'join_as'. 2021-03-12 16:58:26 +04:00
John Preston
4d093f78e2 Update self as channel in voice chats. 2021-03-12 16:58:26 +04:00
John Preston
02e9b8fd18 Support joining to voice chats as a channel. 2021-03-12 16:58:26 +04:00
John Preston
02517f7221 Update API scheme to layer 125. 2021-03-12 16:58:26 +04:00
Ilya Fedin
8042a83fd2 Move glib usage to glibmm 2021-03-04 12:07:54 +04:00
John Preston
8142acc709 Remove legacy #feed code. 2021-02-25 17:03:51 +04:00
John Preston
b5a2b0fb98 Detect file mime from content as well on Linux. 2021-02-22 23:42:43 +04:00
John Preston
221b896117 Suggest converting to gigagroup. 2021-02-22 23:42:42 +04:00
John Preston
f9f52302bb Ignore accents in contacts list sorting. 2021-02-22 23:42:42 +04:00
John Preston
0a678ae8bd No 'Clear History' for everyone in groups. 2021-02-22 23:42:42 +04:00
John Preston
ce5739048a Fix build on Xcode. 2021-02-22 23:42:42 +04:00
John Preston
467449ac13 When reporting peer allow to select messages first. 2021-02-22 23:42:42 +04:00
John Preston
4896509ddf Allow clear history for everyone in small supergroups. 2021-02-22 23:42:42 +04:00
John Preston
781e7a2e79 Update API scheme, simplify auto-delete. 2021-02-22 23:42:41 +04:00
John Preston
8188ab3033 Adapt UI for gigagroups. 2021-02-22 23:42:41 +04:00
John Preston
73ae29ae25 Update API scheme. 2021-02-22 23:42:41 +04:00
John Preston
15e03687f8 Add auto-delete period edit box. 2021-02-22 23:42:41 +04:00
John Preston
f97064ed37 Add auto-delete control to compose controls. 2021-02-22 23:42:41 +04:00
John Preston
6a6e355af4 Handle ttl_period locally. 2021-02-22 23:42:40 +04:00
John Preston
046a3906c4 Destroy messages by ttl_period dates. 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
502a3ca70f Update API scheme to layer 124. 2021-02-22 23:42:40 +04:00
John Preston
8ec60e0321 Show all .webp as stickers.
Allow opening stickers not from stickerpacks in media viewer.
2021-02-17 10:46:36 +04:00
John Preston
223681d2da Fix default chat rights for creator. 2021-02-17 10:46:36 +04:00
John Preston
39742d22d9 Apply volume_by_admin flag in voice chats. 2021-02-09 19:26:56 +04:00
23rd
062c451c27 Refactored handle of last editable message on Up arrow in sections. 2021-02-04 18:13:03 +04:00
John Preston
4e5c81dac2 Correctly handle 'min' group call participant updates. 2021-02-01 16:25:38 +04:00
John Preston
5feb381cb2 Allow showing images from cache in media viewer.
Fixes #10237.
2021-02-01 15:44:24 +04:00
John Preston
8f0e23bb25 Improve editing messages with link previews.
Now preview state can be one of (allowed, cancelled, empty-in-edit).

In case of editing a message without preview we set the state to
empty-in-edit and it changes to allowed if the links in the message
are changed somehow.

That way we don't need to cancel the preview when editing a message
with a cancelled preview and at the same time adding a link to
a message that had no preview in the first place will add a preview.
2021-01-29 15:27:17 +04:00
John Preston
fc4ed2ff91 Fix repainting of non-first file album item. 2021-01-29 14:38:07 +04:00
23rd
827c950468 Moved common GroupCall structs to separate file. 2021-01-25 19:05:03 +03:00
John Preston
b2c84d675c Allow clearing calls log. 2021-01-25 16:50:59 +04:00
John Preston
417428b21d Allow deleting small groups for everyone. 2021-01-25 16:50:59 +04:00
John Preston
58733ba6ea Add support for FAKE badge. 2021-01-25 16:50:59 +04:00
John Preston
1774b21e88 Add ability to completely delete legacy group. 2021-01-25 16:50:58 +04:00
John Preston
542abb26b9 Allow sharing link to chats. 2021-01-25 16:47:41 +04:00
John Preston
e5320b4b4e Implement new permanent invite link management. 2021-01-25 16:47:40 +04:00
John Preston
f63f0a7668 Mute by me / change participant volume. 2021-01-25 16:47:40 +04:00
John Preston
b396244606 Update API scheme to layer 123. 2021-01-25 16:47:40 +04:00
23rd
d4bbbdb65c Replaced rand_value util function with openssl::RandomValue. 2021-01-24 10:41:10 +03:00
23rd
dd01ece14a Replaced snap util function with std::clamp. 2021-01-24 10:41:10 +03:00
John Preston
574d915c23 Fix build and tray icon menu on Windows. 2021-01-22 16:53:59 +04:00
23rd
eb42a77eb7 Changed Up arrow shortcut for albums to edit item with caption.
Fixed #10134.
2021-01-22 16:53:59 +04:00
23rd
ad761011d6 Added ability to fetch song cover from external resource. 2021-01-22 16:53:59 +04:00
23rd
3fadf2ee54 Added Up arrow shortcut to edit comments. 2021-01-11 22:46:56 +03:00
23rd
15254599e2 Unified checking for editable message. 2021-01-11 22:46:56 +03:00
23rd
8fffe7d128 Added ability to show song cover in HistoryView and Overview::Layout. 2021-01-11 22:46:45 +03:00
John Preston
d16bc36bae Update API scheme. 2020-12-22 22:39:30 +04:00
John Preston
92bc278052 Allow inviting contacts to voice chats. 2020-12-22 12:33:06 +04:00
John Preston
cabd7a276b Add 'invited' members to voice chats. 2020-12-16 15:58:58 +04:00
John Preston
146a9c2794 Don't edit old 'voice chat started' message. 2020-12-16 12:20:46 +04:00
John Preston
15620b5c2d Divide speaking status and background noise. 2020-12-15 14:16:44 +04:00
John Preston
ad2d2c203f Respect 'just_joined' participant flag. 2020-12-14 20:08:47 +04:00
John Preston
b6483cb65c Use shared_ptr<Memento> for sections. 2020-12-14 18:48:10 +04:00
23rd
c8643aa1ee Wrapped raw SectionMemento with unique_ptr. 2020-12-14 17:09:24 +04:00
John Preston
1b624d67b8 Support voice chats in legacy groups, with migration. 2020-12-14 16:52:18 +04:00
John Preston
2b91eedcd4 Update API scheme. 2020-12-13 23:27:51 +04:00
John Preston
424ba1dbea Track speaking state in non-joined voice chats. 2020-12-11 15:04:34 +04:00
John Preston
49fc066480 Handle GROUPCALL_FORBIDDEN in joinGroupCall. 2020-12-08 13:39:54 +04:00
John Preston
732bc38e8e Show chats list badge only for non-empty calls. 2020-12-06 17:28:27 +04:00
John Preston
80b7858f5e Don't reorder members while menu is shown. 2020-12-06 16:16:11 +04:00
John Preston
fdbe6bdeb2 Add voice chat indicator in the chats list. 2020-12-02 13:52:33 +03:00
John Preston
c82bc691e0 Improve group call service messages. 2020-12-01 17:17:05 +03:00
John Preston
5a324756fd Track call_active flag in channels. 2020-12-01 16:22:07 +03:00
John Preston
309b3a6f96 Keep speaking state only for 350ms. 2020-12-01 14:59:09 +03:00
John Preston
ef119dadd5 Add bouncing of userpics in group call members. 2020-12-01 14:52:40 +03:00
John Preston
498d6226e3 Add blob animations to group call participants. 2020-12-01 12:06:06 +03:00
John Preston
02d5af7d71 Detect animated stickers by mime type. 2020-12-01 09:45:24 +03:00
John Preston
d40768f6b0 Use separate styles for group call boxes. 2020-12-01 09:45:23 +03:00
John Preston
e66ad89a2a Load unknown participants by source. 2020-12-01 09:45:23 +03:00
John Preston
058199aa0d Track speaking state in participants list. 2020-12-01 09:45:23 +03:00
John Preston
3a5b625d64 Allow inviting members to the group call. 2020-12-01 09:45:23 +03:00
John Preston
9e5006dd67 Add group call settings box. 2020-12-01 09:45:22 +03:00
John Preston
abb81c764e Allow discarding group call when leaving. 2020-12-01 09:45:22 +03:00
John Preston
d1c821973a Update speaking status based on audio level. 2020-12-01 09:45:22 +03:00
John Preston
b54a2aa40b Apply self mute status locally. 2020-12-01 09:45:22 +03:00
John Preston
7983d33ad5 Add manage_call admin right support. 2020-12-01 09:45:22 +03:00
John Preston
c8dd486410 Update API scheme. 2020-12-01 09:45:22 +03:00
John Preston
a6b4cdd62d Improve group call members list updating. 2020-12-01 09:45:22 +03:00
John Preston
858ee0e8c4 Update API scheme. 2020-12-01 09:45:22 +03:00
John Preston
41591ff2e9 Add group calls top bar. 2020-12-01 09:45:21 +03:00
John Preston
25f3c14780 Apply group call updates. 2020-12-01 09:45:21 +03:00
John Preston
33941ad1b9 Start group call bar in HistoryWidget. 2020-12-01 09:45:21 +03:00
John Preston
62eaa3f225 Update API scheme to layer 121. 2020-12-01 09:45:21 +03:00
John Preston
91b8ad171a Beta version 2.4.10.
- Use inline bots and sticker by emoji suggestions
in channel comments.
- Lock voice message recording,
listen to your voice message before sending.
2020-11-17 18:21:19 +03:00
John Preston
b3eb7858e6 Save local drafts in scheduled / replies sections.
Fix inline bot switch inline in scheduled / replies sections.
2020-11-17 12:58:07 +03:00
John Preston
f04b3da76a Add return from bot switch_pm to Scheduled/Replies. 2020-11-17 12:58:06 +03:00
John Preston
74d2313784 Build Linux version with Qt 5.15.1 in CentOS 7 docker. 2020-11-06 11:21:34 +03:00
John Preston
53c308c24b Loop pinned messages in the top bar. 2020-10-30 18:32:21 +03:00
John Preston
68041d2ffb Merge pinned list with migrated legacy group. 2020-10-30 18:32:20 +03:00
John Preston
994e3d8da7 Add hide / unpin all button in pinned section. 2020-10-30 18:32:20 +03:00
John Preston
cd5cad72bd Use only shared media code for pinned tracking. 2020-10-30 18:32:20 +03:00
John Preston
698c9fc4be Fix preloading of pinned messages. 2020-10-30 18:32:20 +03:00
John Preston
fc92e3fadd Add pinned messages section. 2020-10-30 18:32:20 +03:00