Commit graph

691 commits

Author SHA1 Message Date
Peter G
46419b0960 Highlight unread Converstations (#513)
* Highlight unread conversations

See: #512

* make highlighting configurable

* more verbose variable names

* remove the rectangle gain, it is too annoying

* respect the setting

---------

Co-authored-by: nephros <nemo@pgxperiiia10>
2023-11-19 12:22:04 +03:00
Slava Monich
c1c8729023 Adapt to changes in reply message info (#525)
1.8.14:
https://github.com/tdlib/td/commit/fa94aba

1.8.21:
https://github.com/tdlib/td/commit/811a7c6
https://github.com/tdlib/td/commit/5216ea1
2023-11-19 12:21:17 +03:00
Sebastian Wolf
9bcc9ab690 Only expect chat partner information in private chats 2023-11-19 12:01:42 +03: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
Sebastian Wolf
0224d2f338
Trouble with usernames 2023-11-19 00:18:29 +01:00
Sebastian Wolf
f771a9a81b
Some minor adjustments 2023-11-18 23:39:09 +01:00
Johannes Bachmann
b11f7dd8b1
Always append last message content to notifications (#514)
* always append last message content to notifications

* make "always show notification" configurable

* add unfinished translations

* Fix spacing if no sender is printed
2023-11-18 23:11:17 +01:00
Peter G
3620b8ed03
Add option to suppress notification previews (#521)
* Add Switch in Settings

* Don't set notification preview body

* Support the setting in appSettings

* fixup! Add Switch in Settings

* Just show message count

* Also show only when notifications are enabled at all

---------

Co-authored-by: nephros <nemo@pgxperiiia10>
2023-11-18 22:58:05 +01:00
Peter G
3ab0b94831
Highlight unread Converstations (#513)
* Highlight unread conversations

See: #512

* make highlighting configurable

* more verbose variable names

* remove the rectangle gain, it is too annoying

* respect the setting

---------

Co-authored-by: nephros <nemo@pgxperiiia10>
2023-11-18 22:40:12 +01:00
jgibbon
1ffcfb48ca
Add specific unread info for higher counts of unread messages (#516) 2023-11-18 22:24:27 +01:00
Slava Monich
527b2c3c9a
Adapt to changes in reply message info (#525)
1.8.14:
https://github.com/tdlib/td/commit/fa94aba

1.8.21:
https://github.com/tdlib/td/commit/811a7c6
https://github.com/tdlib/td/commit/5216ea1
2023-11-18 22:14:59 +01:00
jgibbon
ca42a5e7e0 Add specific unread info for higher counts of unread messages 2023-11-18 22:38:44 +03:00
Sebastian Wolf
2b51405743
Only expect chat partner information in private chats 2023-11-18 15:35:02 +01: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
59b99a0a28 Fixed size of background circle for Unread messages 2023-08-03 15:02:34 +03: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
f3dd33c4ca removed sailfish contact sync support 2023-07-09 14:43:18 +03:00
Sebastian Wolf
83f0c54f8b Switch to icon-m-video as placeholder 2023-07-09 14:43:18 +03:00
Sebastian Wolf
29621b739a
Switch to icon-m-video as placeholder 2023-06-20 09:46:01 +02:00
Denis Fedoseev
9d37635500 мелкие фиксы для валидатора 2023-04-04 10:53:39 +03:00
Sebastian Wolf
a7ab0ed33a
Prepare support for contact sync with SFOS 4.5 2023-02-05 20:17:06 +01:00
Slava Monich
f152bbeb5b
Always show user or group id on the info page (#511)
And copy it to the clipboard on tap.
2023-02-05 15:52:06 +01:00
Peter G
b469135877
improve message when search yields no results (#507)
Co-authored-by: nephros <nemo@pgxperiiia10>
2023-02-05 15:41:04 +01: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
99910a3f3a
Bring unread mention/reactions to chat list 2022-06-06 15:55:21 +02:00
Sebastian Wolf
fa8a77a265
Next version will be 0.16 2022-05-29 22:17:37 +02:00
Sebastian Wolf
03fad6da6d
Reactions only for current message, restore animated stickers 2022-05-29 22:10:30 +02:00
Sebastian Wolf
0cc6f959fc
Option to mark all chat reactions as read 2022-05-24 21:19:15 +02:00
Sebastian Wolf
033f96b366
Display reactions to message 2022-05-23 23:33:17 +02:00
Sebastian Wolf
7c56bbeae4
Merge branch 'master' of github.com:Wunderfitz/harbour-fernschreiber 2022-05-01 23:51:53 +02:00
Sebastian Wolf
723371e9c9
Add reactions flickable to messages (on click) 2022-05-01 23:51:03 +02:00
Sebastian Wolf
2c53848d04
Merge pull request #493 from monich/sessions
Made sure that context menu stays inside the screen area
2022-05-01 23:50:34 +02:00
Slava Monich
23df9d05ee Made sure that context menu stays inside the screen area 2022-05-01 17:11:17 +03:00
Sebastian Wolf
0e7ae00a67
Workaround for t.me/+... links 2022-05-01 14:04:28 +02:00
Sebastian Wolf
81cf5b6852
Use normal URL dialog for t.me/+... links 2022-05-01 01:17:37 +02:00
Sebastian Wolf
6d6b07b9a9
Get available message reactions 2022-04-30 23:51:47 +02:00
Sebastian Wolf
32a55c48be
Bring notifications back to lock screen, changelog for 0.15 2022-04-27 22:06:57 +02:00
Sebastian Wolf
99bb0c7b85
Remove direct call to Pure Maps, use generic handler for geo: URIs now 2022-04-26 22:26:54 +02:00
Sebastian Wolf
679426abc1
xdg-open doesn't seem to work anymore on SFOS 4.4 2022-04-24 20:55:06 +02:00
Sebastian Wolf
856a16c640
Don't overwrite active status of attachment row for voice notes, fixes #481 2022-04-24 14:39:36 +02:00
Sebastian Wolf
40f60cf4be
Add Emoji 14.0 support :) 2022-03-21 22:37:27 +01:00
Slava Monich
11f055932a Support textEntityTypeStrikethrough
It's not currently working because of this QtQuick bug:

  https://bugreports.qt.io/browse/QTBUG-72376

but maybe someday it will.
2022-02-20 18:58:38 +02:00
Sebastian Wolf
338fd3edd1
New release somewhen after TDLib upgrade 2022-01-07 23:58:45 +01:00
Sebastian Wolf
60c1ed6bb1
Try to optimize sticker set handling (less reload) 2022-01-07 23:00:28 +01:00
Sebastian Wolf
932f483b7a
TDLib 1.8.0: New format for sponsored messages 2022-01-07 22:03:58 +01:00
Sebastian Wolf
fcbf9d65f1
TDLib 1.8.0: Headers and sender -> sender_id changes 2022-01-07 19:18:04 +01:00
Sebastian Wolf
fd46780b89
Merge pull request #477 from monich/replies
Fixed message reference in Replies chat
2022-01-05 21:07:30 +01:00
Slava Monich
a6d469a999 Don't try to load message with zero id
chatPage.messageIdToShow can be defined and yet be zero
2021-12-26 04:50:37 +02: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
Sebastian Wolf
833f5f1df7
Prepare 0.12 2021-12-16 21:54:30 +01:00
Sebastian Wolf
2d58239c34
Merge pull request #466 from monich/forward
Optimized forwarding
2021-12-16 21:19:50 +01:00
Sebastian Wolf
49b7047ac9
Some cleanup after #469 2021-12-15 23:56:46 +01:00
Sebastian Wolf
1ff1426b8b
Merge pull request #469 from nephros/sessions
Move Session options to Settings page
2021-12-15 22:34:08 +01:00
Sebastian Wolf
5ad93a777a
Try switching back to ChatListModel for opening chats via notifications 2021-12-15 22:07:14 +01:00
nephros
a5e5e36083 Use Remorse.popupAction instead of RemorseItem
RemorseItem sets anchors which we can't have in a Column
2021-12-15 12:17:05 +01:00
nephros
8349cb4377 fixup! fixup! Settings: add login info and logout to Profile 2021-12-15 12:02:32 +01:00
nephros
313a4d3827 fixup! Settings: add login info and logout to Profile 2021-12-15 11:57:48 +01:00
nephros
f33162801c Settings: add login info and logout to Profile 2021-12-15 11:55:29 +01:00
nephros
3786a0cb3f Sessions: remove profile info, restore list design 2021-12-15 10:36:26 +01:00
Slava Monich
68a2adc38d Optimized forwarding
It was a very strange experience. Now it's more like what an average
user would expect :)
2021-12-15 01:30:26 +02:00
Sebastian Wolf
7bfa4a54e0
Some logging for some strange issues... 2021-12-14 23:22:21 +01:00
nephros
f8bc0df74a Tweak dimensions, fix ResponsiveGrid 2021-12-14 12:56:11 +01:00
nephros
4a04a55513 Move Session options to Settings page 2021-12-12 22:09:28 +01:00
Sebastian Wolf
fe9cd73798
Narrow down message link option for tg/resolve links 2021-12-11 23:22:32 +01:00
Sebastian Wolf
b8e5fb189c
Handle many direct message links properly, fixes #312 2021-12-11 18:29:31 +01:00
Sebastian Wolf
37518d06a6
Merge pull request #464 from monich/filter
Improve chat search performance
2021-12-09 22:11:05 +01:00
Slava Monich
5da08c2a15 Hide appearance settings that are not applicable 2021-12-09 05:16:21 +02:00
Slava Monich
3c20eb7ca8 Improve chat search performance
Simple text search performs significantly better that regular
expressions.

Disconnecting search filter model from the source when search is off
should be good for performance because the filter model won't have to
unnecessarily react to the source model changes.
2021-12-09 02:13:18 +02:00
Sebastian Wolf
5309dda94b
Avoid saving drafts for deleted users, fixes #439 2021-12-08 23:57:06 +01:00
Sebastian Wolf
02573e8d4e
Add option to delete private chat, see #439 2021-12-08 22:35:26 +01:00
Sebastian Wolf
c509616db9
Merge pull request #462 from monich/emoji-bg
Apply last remaining sticker option to animated emoji
2021-12-08 21:26:34 +01:00
Sebastian Wolf
57f2d71eca
Basic group chat members come in differently 2021-12-08 21:24:29 +01: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
fcdf6cc4ed
Merge pull request #460 from monich/emoji
Describe emoji with emoji
2021-12-08 00:34:50 +01:00
Sebastian Wolf
0f4e0eaf58
Better support sponsored message types 2021-12-08 00:33:35 +01:00
Slava Monich
2fea47af1b Describe emoji with emoji
And stickers too
2021-12-08 00:57:54 +02:00
Sebastian Wolf
b5b0ec5ed1
Some fixes for #457 were missing... 2021-12-07 20:36:48 +01:00
Sebastian Wolf
b2e41a6421
Adapt to new chat member format, fixes #457 2021-12-06 23:51:54 +01:00
Sebastian Wolf
489c410b14
Merge branch 'master' into smarter-extra-options 2021-12-05 22:09:18 +01:00
Sebastian Wolf
9da9d22a71
Merge pull request #449 from monich/header-font-size
Use larger font for settings section headers
2021-12-05 22:06:59 +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
8a48982ca5 Use larger font for settings section headers 2021-12-05 01:12:49 +02:00
Sebastian Wolf
0400d12e52
Support for animated emoji 2021-12-04 22:05:22 +01:00
Sebastian Wolf
88d385ab0d
Don't forget the about page 2021-11-10 22:01:56 +01:00
Sebastian Wolf
db655d766f
No 'Recently used' section if there are no stickers, fixes #438 2021-11-07 15:09:33 +01:00
Sebastian Wolf
90b0a40824
Improve URL/open-with handler (hopefully) 2021-11-03 23:31:00 +01:00
Slava Monich
481d6e88cc Animate accordion image rotation 2021-09-18 16:59:37 +03:00
Sebastian Wolf
dce28370b5
Development continues with 0.10 2021-08-30 20:07:11 +02:00
Sebastian Wolf
2f635395bc
Merge pull request #430 from Wunderfitz/feature/settings-page-accordion
settings page accordion
2021-08-30 19:47:41 +02:00
Sebastian Wolf
bb9cacb71e
Adjust accordion arrows to match default UX (see sample components) 2021-08-30 19:25:49 +02:00
jngibbon
fa9e0c7d54 Update chatNotificationSettings in chat info page 2021-07-02 23:47:30 +02:00
jngibbon
2ffe9ae885 Remove some unused code/comments and a few empty lines 2021-06-09 08:55:11 +02:00
jngibbon
0aba35d9bd Implement Settings Accordion
fixes #344
2021-06-09 08:55:11 +02:00