Commit graph

349 commits

Author SHA1 Message Date
Sebastian Wolf
0224d2f338
Trouble with usernames 2023-11-19 00:18:29 +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
Sebastian Wolf
e44c69281c
Don't enable highlight conversations by default 2023-11-18 22:44:49 +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
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
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
Sebastian Wolf
5394fde136
Update chat list more reliably 2023-08-08 22:50:04 +02:00
Sebastian Wolf
a7ab0ed33a
Prepare support for contact sync with SFOS 4.5 2023-02-05 20:17:06 +01:00
Sebastian Wolf
a9b6bf5817
React to network configuration changes, fixes #504 2022-07-10 22:39:52 +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
9ff7a8371d
README: build instructions | Try to avoid ghost chats in main list 2022-05-30 23:22:57 +02:00
Sebastian Wolf
fa8a77a265
Next version will be 0.16 2022-05-29 22:17:37 +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
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
46433109a6
Store own user information also when 'my_id' option arrives after user itself 2022-04-24 22:11:31 +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
ebe0143a8a
SFOS 4.4 removed notification categories, fixes #486 2022-04-22 00:08:04 +02:00
Sebastian Wolf
e40cf02baa
Merge pull request #485 from monich/view-mess
Adapt handling of sponsored messages to the new format
2022-04-21 22:57:36 +02:00
Sebastian Wolf
9d6ff8e7d7
Some SailJail stuff, eventually need to become SFOS 4.4-ready 2022-04-21 22:37:14 +02:00
Slava Monich
5f16156f01 Adapt handling of sponsored messages to the new format 2022-03-27 22:22:47 +03:00
Slava Monich
3c5bf563a6 Pass ids to TDLibWrapper::viewMessage as integers
Because they are integers
2022-03-27 22:22:47 +03:00
Sebastian Wolf
40f60cf4be
Add Emoji 14.0 support :) 2022-03-21 22:37:27 +01: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
3a8615dbe3
'getChats' becomes 'loadChats' with TDLib 1.8 2022-01-05 21:43:54 +01:00
Slava Monich
326a789b01 Fix forwarding to channels with creator/admin access 2021-12-25 19:29:26 +02:00
Slava Monich
7c8db1b739 Remove (some) unused entries from QVariantMaps
This may save megabytes of heap depending on how many stickers you have.
2021-12-18 06:40:06 +02:00
Sebastian Wolf
833f5f1df7
Prepare 0.12 2021-12-16 21:54:30 +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
b8e5fb189c
Handle many direct message links properly, fixes #312 2021-12-11 18:29:31 +01: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
02573e8d4e
Add option to delete private chat, see #439 2021-12-08 22:35:26 +01: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
Slava Monich
84cfcb5150 Contigurable mess
There's no UI for that, you have to configure your mess manually))
Also, made sure that chats don't handle another char's mess.
2021-12-06 04:32:40 +02:00
Slava Monich
5a2596e9de Attempt to optimize sponsored message handling
By reducing number of QVariantMap lookups and various run-time
conversions to/from QString
2021-12-06 03:57:08 +02:00
Sebastian Wolf
a59d32b29d
Update to TDLib 1.7.9, preliminary support for sponsored messages 2021-12-05 22:06:05 +01:00
Sebastian Wolf
0400d12e52
Support for animated emoji 2021-12-04 22:05:22 +01:00
Sebastian Wolf
406fbb04a4
MIME handling under SFOS is quite complicated 2021-11-09 22:42:54 +01:00
Sebastian Wolf
f3242bf7db
We only need the local .desktop files in Verla and earlier :) 2021-11-07 19:53:23 +01:00
Sebastian Wolf
a88abbb20f
Compatibility with earlier SFOS versions is hard... 2021-11-07 17:00:17 +01:00