Commit graph

95 commits

Author SHA1 Message Date
234a84ac04 Fixed merge 2024-05-04 22:19:40 +03:00
42e59badae Merged 2024-05-04 18:41:19 +03:00
7847a22a3e Mergerd 2024-05-04 17:23:27 +03:00
jgibbon
4857b14fb8 fix range + message updates; implement album filter 2023-12-28 13:03:13 +01:00
Slava Monich
cf7b706582 Tweaked the logic of moving reactions into the view (#543)
There's no need to reposition list items if reactions bar are already
fully visible.
2023-12-03 23:50:55 +03:00
Sebastian Wolf
edfce9b492 Highlight message that was jumped to 2023-12-03 23:50:55 +03:00
mbarashkov
e5d1ecd9f3 Jump to post from quote (#538)
* Jump to post from quote

* Add a setting to go to quoted message.

---------

Co-authored-by: Mikhail Barashkov <git@mbarashkov.ru>
2023-12-03 23:50:23 +03:00
Sebastian Wolf
42a7813776 Not only tablets have widescreen ;) 2023-12-03 23:50:21 +03:00
mbarashkov
627faba0db Improve chat UI on tablets by making messages narrower and limiting content items width as well. (#540)
Co-authored-by: Mikhail Barashkov <git@mbarashkov.ru>
2023-12-03 23:49:14 +03:00
Sebastian Wolf
1a0ed7f298 Only one star per list, restore users in poll results 2023-12-03 23:46:30 +03:00
Slava Monich
b2363af36f
Tweaked the logic of moving reactions into the view (#543)
There's no need to reposition list items if reactions bar are already
fully visible.
2023-12-03 12:53:32 +01:00
Sebastian Wolf
4ed9495376
Highlight message that was jumped to 2023-12-03 00:48:41 +01:00
mbarashkov
2dd1d2c380
Jump to post from quote (#538)
* Jump to post from quote

* Add a setting to go to quoted message.

---------

Co-authored-by: Mikhail Barashkov <git@mbarashkov.ru>
2023-12-03 00:46:47 +01:00
Sebastian Wolf
bba4a6468c
Not only tablets have widescreen ;) 2023-12-02 23:50:13 +01:00
mbarashkov
64479f0dd3
Improve chat UI on tablets by making messages narrower and limiting content items width as well. (#540)
Co-authored-by: Mikhail Barashkov <git@mbarashkov.ru>
2023-12-02 23:44:14 +01:00
Sebastian Wolf
80ecf50e74
Only one star per list, restore users in poll results 2023-11-29 23:47:59 +01:00
Sebastian Wolf
61faf0f407
More tweaks for reactions 2023-11-26 23:36:29 +01:00
Sebastian Wolf
24edb17347
Animate new reaction button 2023-11-26 20:53:09 +01:00
Sebastian Wolf
98f067cda8
Tweak reactions again... 2023-11-26 20:36:30 +01:00
Slava Monich
84594e4c2c
Allow to remove a reaction (#536) 2023-11-26 18:05:51 +01:00
Sebastian Wolf
26772a48eb Show reactions on double-click 2023-11-25 13:33:13 +03:00
Sebastian Wolf
02b6dd2e6d
Show reactions on double-click 2023-11-21 21:55:08 +01:00
Sebastian Wolf
1e88a31f90 Display reactions on last message again 2023-11-21 14:18:20 +03:00
Sebastian Wolf
026d32c92a Restore search in chats 2023-11-21 14:18:20 +03:00
Sebastian Wolf
5b2fa38f7e
Display reactions on last message again 2023-11-20 21:53:57 +01:00
Sebastian Wolf
8d59ee4c00
Restore search in chats 2023-11-20 21:27:55 +01:00
Sebastian Wolf
63f4b37655 Hide unsupported emojis for reactions 2023-11-20 00:49:35 +03:00
Sebastian Wolf
f133586aa2
Hide unsupported emojis for reactions 2023-11-19 14:36:06 +01:00
Slava Monich
0b6a2db2f1 Adapt to changes in TdLib (#524)
* Adapt setTdlibParameters for TdLib > 1.8.5

For some reason tdlibParameters were inlined between 1.8.5 and 1.8.6
See https://github.com/tdlib/td/commit/f6a2ecd

* sponsoredMessage => sponsoredMessages in TdLib 1.8.8

See https://github.com/tdlib/td/commit/ec1310a

* Support another variant of messageReaction

The reaction field has changed from string to ReactionType somewhere
between 1.8.5 and 1.8.6

See https://github.com/tdlib/td/commit/b14708f

* Add support for new message reactions API

It has changed between 1.8.5 and 1.8.6

https://github.com/tdlib/td/commit/b14708f (ReactionType)
https://github.com/tdlib/td/commit/0b8e143 (ChatAvailableReactions)
https://github.com/tdlib/td/commit/6b2f6b4 (addMessageReaction)
https://github.com/tdlib/td/commit/d29d367 (updateActiveEmojiReactions)

etc.

* Highlight chosen reaction

* Support username in the new format

username attribute has been replaced with usernames in 1.8.8 and
now looks like this:

    "usernames": {
        "@type": "usernames",
        "active_usernames": [
            "whatever"
        ],
        "disabled_usernames": [
        ],
        "editable_username": "whatever"
    }

See https://github.com/tdlib/td/commit/897032e

* Support new reply_to message attribute

Since 1.8.15 it replaces reply_to_message_id and reply_in_chat_id.
Looks like this:

    "reply_to": {
        "@type": "messageReplyToMessage",
        "chat_id": -1001234567890,
        "is_quote_manual": false,
        "message_id": 234567890,
        "origin_send_date": 0
    },

See https://github.com/tdlib/td/commit/6116573

* Added support for MessageOrigin values

All of a sudden MessageForwardOrigin has been renamed into MessageOrigin
in TdLib 1.8.20 just because why not:

https://github.com/tdlib/td/commit/10c9e40
2023-11-19 12:01:27 +03:00
Slava Monich
1ee8d134bc
Adapt to changes in TdLib (#524)
* Adapt setTdlibParameters for TdLib > 1.8.5

For some reason tdlibParameters were inlined between 1.8.5 and 1.8.6
See https://github.com/tdlib/td/commit/f6a2ecd

* sponsoredMessage => sponsoredMessages in TdLib 1.8.8

See https://github.com/tdlib/td/commit/ec1310a

* Support another variant of messageReaction

The reaction field has changed from string to ReactionType somewhere
between 1.8.5 and 1.8.6

See https://github.com/tdlib/td/commit/b14708f

* Add support for new message reactions API

It has changed between 1.8.5 and 1.8.6

https://github.com/tdlib/td/commit/b14708f (ReactionType)
https://github.com/tdlib/td/commit/0b8e143 (ChatAvailableReactions)
https://github.com/tdlib/td/commit/6b2f6b4 (addMessageReaction)
https://github.com/tdlib/td/commit/d29d367 (updateActiveEmojiReactions)

etc.

* Highlight chosen reaction

* Support username in the new format

username attribute has been replaced with usernames in 1.8.8 and
now looks like this:

    "usernames": {
        "@type": "usernames",
        "active_usernames": [
            "whatever"
        ],
        "disabled_usernames": [
        ],
        "editable_username": "whatever"
    }

See https://github.com/tdlib/td/commit/897032e

* Support new reply_to message attribute

Since 1.8.15 it replaces reply_to_message_id and reply_in_chat_id.
Looks like this:

    "reply_to": {
        "@type": "messageReplyToMessage",
        "chat_id": -1001234567890,
        "is_quote_manual": false,
        "message_id": 234567890,
        "origin_send_date": 0
    },

See https://github.com/tdlib/td/commit/6116573

* Added support for MessageOrigin values

All of a sudden MessageForwardOrigin has been renamed into MessageOrigin
in TdLib 1.8.20 just because why not:

https://github.com/tdlib/td/commit/10c9e40
2023-11-18 14:45:22 +01:00
656e8ccfe7 left margin for own messages in private chats 2023-07-12 01:27:18 +03:00
22930628ae wide message without left margin 2023-07-12 01:12:53 +03:00
0d26167ee3 remove left margin on own messages 2023-07-10 01:29:00 +03:00
723105382d remove own id from messages title 2023-07-09 15:16:06 +03:00
aac7fd7328 remowed right align on own messages 2023-07-09 14:43:18 +03:00
Sebastian Wolf
5465d454f5
Pre-allocate vertical space for reactions 2022-06-08 23:13:34 +02:00
Sebastian Wolf
0a76ede35a
Only display reactions on chat list for now 2022-06-06 23:06:57 +02:00
Sebastian Wolf
03fad6da6d
Reactions only for current message, restore animated stickers 2022-05-29 22:10:30 +02:00
Sebastian Wolf
033f96b366
Display reactions to message 2022-05-23 23:33:17 +02:00
Sebastian Wolf
723371e9c9
Add reactions flickable to messages (on click) 2022-05-01 23:51:03 +02:00
Sebastian Wolf
6d6b07b9a9
Get available message reactions 2022-04-30 23:51:47 +02:00
Sebastian Wolf
fcbf9d65f1
TDLib 1.8.0: Headers and sender -> sender_id changes 2022-01-07 19:18:04 +01:00
Slava Monich
af5a2b6c92 Fixed message reference in Replies chat
According to td_api.tl:

@reply_in_chat_id If non-zero, the identifier of the chat to which the
replied message belongs; Currently, only messages in the Replies chat
can have different reply_in_chat_id and chat_id
2021-12-26 04:46:52 +02:00
Slava Monich
1179c86a06 Make "In reply to" properly react to taps 2021-12-18 02:44:45 +02:00
Slava Monich
fb2c0a42c1 Apply last remaining sticker option to animated emoji
In all other respects their behavior is already equivalent
2021-12-08 20:52:57 +02:00
Sebastian Wolf
489c410b14
Merge branch 'master' into smarter-extra-options 2021-12-05 22:09:18 +01:00
Sebastian Wolf
a59d32b29d
Update to TDLib 1.7.9, preliminary support for sponsored messages 2021-12-05 22:06:05 +01:00
Slava Monich
9f4f3c9475 Hide "Extra options..." context menu item if it's not needed
If all context actions fit into the context menu limit (5 items in portrait,
4 items in landscape) it makes no sense to show this "Extra options..." thing.
2021-12-05 03:30:00 +02:00
Slava Monich
9a2b2b0ca8 Handle more cases when the drawer should be closed
1. Other item is pressed
2. Any item is long-pressed, including the selected one
3. ChatPage is getting deactivated
2021-03-27 01:27:47 +02:00
Slava Monich
4050f41ce2 Don't have on-screen keyboard and drawer visible simultaneously
Also, removed unnecessary closeRequested() signal.
2021-02-22 00:27:36 +02:00