Arseniy Lartsev
23c8b812a1
Implement sending images
2020-05-16 00:16:06 +02:00
Arseniy Lartsev
16ff2d734a
Mave just one "utils" file
2020-05-15 23:13:22 +02:00
Arseniy Lartsev
29b9dc2421
Show captions for already-downloaded images
...
Such as identical re-send by someone, or own outgoing message
2020-05-15 19:31:03 +02:00
Arseniy Lartsev
58ea8b8eba
Require account alias to be set when registering new user
2020-05-14 15:00:17 +02:00
Arseniy Lartsev
970c0d48a0
Register new user when requested
2020-05-14 14:51:26 +02:00
Arseniy Lartsev
0a0b10dca4
Don't preceed with login before AuthenticationStateReady
2020-05-14 14:51:26 +02:00
Arseniy Lartsev
3d79219904
Preparations for implementing sending images
2020-05-14 14:51:05 +02:00
Arseniy Lartsev
9649c08b97
Refactored message display functions
2020-05-13 19:15:15 +02:00
Arseniy Lartsev
f275484661
Show photos inline rather than as file:// links
2020-05-13 14:55:03 +02:00
Arseniy Lartsev
f2574aa4e7
Use requested group when adding contacts
2020-05-13 12:31:03 +02:00
Eion Robb
d01e1add9e
Fix printf macros for win32
2020-05-13 11:35:26 +02:00
Arseniy Lartsev
07ab43b170
Use user ID for libpurple user name, instead of phone number
2020-05-13 11:21:19 +02:00
Arseniy Lartsev
0613f3110c
Joning basic groups using invite link
2020-05-12 19:37:59 +02:00
Arseniy Lartsev
24c20de958
Refactored error handling
2020-05-12 16:00:07 +02:00
Arseniy Lartsev
cd57a65e33
Use _() and fmt library for all displayed messages
2020-05-12 15:33:16 +02:00
Arseniy Lartsev
c294fa1781
Refactored stickers
2020-05-12 13:01:18 +02:00
Arseniy Lartsev
b3857896a6
Replace .tgs stickers with their thumbnails
...
No one can display .tgs
2020-05-12 11:45:49 +02:00
Arseniy Lartsev
09951ef8b8
Receive and show stickers as clickable links
2020-05-12 10:57:32 +02:00
Arseniy Lartsev
986e071006
Moved couple more functions out of PurpleTdClient
2020-05-12 09:35:40 +02:00
Arseniy Lartsev
0ab857fdbc
Correctly show existing contacts in group chat user list
2020-05-11 23:38:21 +02:00
Arseniy Lartsev
f1efaa53c1
Moved some functions out of the mainest source file
2020-05-11 20:18:25 +02:00
Arseniy Lartsev
42f2441764
Show list of members in basic groups
2020-05-11 19:44:46 +02:00
Arseniy Lartsev
b34d10d242
Don't use td::td_api::downcast_call
...
It needs this member function with auto argument thing, which requires
-fconcepts flag to compile with newer gcc. Rather than have such
problems, just don't use this syntax.
2020-05-10 16:32:13 +02:00
Arseniy Lartsev
8cda4074b9
Support sending messages to group chats
2020-05-10 14:24:15 +02:00
Arseniy Lartsev
db1ee736f6
Added test case for incoming group chat message at login
2020-05-10 13:01:57 +02:00
Arseniy Lartsev
368dff17ad
Create conversation window when "joining" a chat
...
This works for groups we are already member of (these will be in the
contact list)
2020-05-10 12:19:19 +02:00
Arseniy Lartsev
29097c5ac4
Show photos in group chats (plus test case)
2020-05-09 20:48:31 +02:00
Arseniy Lartsev
deb5b14046
Added test for receiving messages in basic group
2020-05-09 19:46:02 +02:00
Arseniy Lartsev
75a1f01358
Implemented receiving group chat messages
2020-05-09 18:58:04 +02:00
Arseniy Lartsev
aa2db8ac20
Removed some obsolete comments and log messages
2020-05-09 15:22:49 +02:00
Arseniy Lartsev
2e998560e3
Create libpurple chats for group chats at login
2020-05-09 15:13:49 +02:00
Arseniy Lartsev
e9390f91fd
Create libpurple chats if we get added to groups while online
2020-05-09 14:53:48 +02:00
Arseniy Lartsev
27709bdf66
Go back to not adding buddies until connected
...
purple_blist_find_chat doesn't work on non-connected accounts, so just
in case, don't use purple_find_buddy either when not connected
2020-05-09 13:58:54 +02:00
Arseniy Lartsev
7b85148cda
More straightforward handling of updateNewChat
...
Add libpurple buddies as soon as updateNewChat has arrived and phone
number is known, regardles of whether it happens at login or later while
online.
2020-05-08 19:50:55 +02:00
Arseniy Lartsev
b76219c12d
Added support for receiving photos (kind of)
...
Pidgin shows them as clickable URLs, and on my systems, opens them with
konqueror of all things. But guess that's good enough.
2020-05-08 17:01:12 +02:00
Arseniy Lartsev
5f893255f7
Added test for some messages other than text and photo
2020-05-08 15:03:35 +02:00
Arseniy Lartsev
d682a2d4c5
Notify about all other message types as well
2020-05-08 13:22:21 +02:00
Arseniy Lartsev
a62647aed8
Notify about videos too, and refactored code there
2020-05-08 13:10:51 +02:00
Arseniy Lartsev
4717c76d35
Mention photos and files in messages (pending real support)
2020-05-07 21:44:51 +02:00
Arseniy Lartsev
c234b8e494
Aded more paranoid null checks
2020-05-07 21:44:45 +02:00
Arseniy Lartsev
af94d3b765
Verify libpurple actions in tests
2020-05-07 13:55:48 +02:00
Arseniy Lartsev
f6ed516f8d
Small tweaks
2020-05-07 00:14:45 +02:00
Arseniy Lartsev
df08fa12f9
Added a real test case with login sequence
2020-05-06 20:22:09 +02:00
Arseniy Lartsev
29ed9fa6a4
Added test framework
2020-05-06 14:00:42 +02:00
Arseniy Lartsev
142b42e3f2
Fixed glitches when getting messaged by someone new (untested)
...
When a new user adds us to their contact list, we get their information,
their online status and their first message before we know their phone
number. Correctly handle this situation and add them to contact list
after a message is received and their phone number becomes known.
2020-05-05 20:19:40 +02:00
Arseniy Lartsev
aea4305867
Collected all phone-number-related functions in one place
2020-05-04 17:32:33 +02:00
Arseniy Lartsev
5b0bacda99
Completely finished adding contacts
2020-05-04 17:16:13 +02:00
Arseniy Lartsev
827410d7fd
Fixed all possible contact duplication
...
When adding a contact with phone number starting with +, telegram will
report phone number without + in subsequent communication. To avoid
problems, always remove leading + before using phone number as libpurple
buddy name.
2020-05-04 17:07:53 +02:00
Arseniy Lartsev
f813f4d8ba
Added comment about auto-removing contacts
2020-05-04 16:21:50 +02:00
Arseniy Lartsev
00cef86071
Revert "Prevent contact duplication in some theoretical situation"
...
This reverts commit d50c766562bb55f2fe11de8b13469bc865455851.
2020-05-04 16:20:47 +02:00