Commit graph

84 commits

Author SHA1 Message Date
Eion Robb
b48f7645d6 Update telegram-base.c
Fix whitespace nightmare
2015-12-30 14:34:44 +01:00
Eion Robb
0d7e8923c5 Remove the need for gcrypt in telegram-purple
Use libpurple's own SHA1 implementation
2015-12-30 14:34:44 +01:00
mjentsch
8fed82cc75 Fix writing messages to deleted buddies and cleanup
Do not depend on buddy list entries when looking up the ID from the user name, by maintaining a bi-directional mapping ID <-> username. Rename functions to make them more evident as something that operatos on the lookup. Cleanup blist functions by implementating generic iterator function over account buddies.
2015-12-28 17:44:49 +01:00
mjentsch
5502824ac4 Clean up, refactoring and fix coding guidelines 2015-11-28 20:17:47 +01:00
Ben Wiederhake
954ed6048b Clarify messages, use 'please' where appropriate 2015-11-26 08:23:25 +01:00
Ben Wiederhake
669880ab4d Fix color channels: TGA uses BGRA, not RGBA 2015-11-25 20:32:31 +01:00
Ben Wiederhake
8d8f299aec Drop LodePNG 2015-11-25 20:32:31 +01:00
mjentsch
04bc03bebf Clean up the include mess
Keep all libtgl and telegram-purple includes in telegram-purple.h to prevent duplication of all those includes. Remove redundant includes.
2015-11-23 03:06:30 +01:00
mjentsch
5d52fce666 Fix compilation on Unix 2015-11-21 09:42:53 +01:00
mjentsch
0b0dbfd25e Merge branch 'beta4' of https://github.com/EionRobb/telegram-purple into EionRobb-beta4 2015-11-21 01:14:06 +01:00
mjentsch
6e210b8417 Improve comments and logging messages 2015-11-16 15:47:32 +01:00
mjentsch
58b7f8c7f9 Coding style 2015-11-15 14:55:36 +01:00
mjentsch
f89f3fd71a Remove code duplication in sign-in procedures
Use the new libtgl request_values callback to query inputs from the user instead
of implementing the sign-in methods manually.
2015-11-15 14:04:00 +01:00
mjentsch
6fce2cf8fa Fix sign in not starting for new accounts 2015-11-14 14:28:10 +01:00
mjentsch
90b4e3b5b5 Fix secret chat name and fingerprint
Correctly initialize secret chat fingerprint and print name when loading the chats from the secret file.
2015-11-12 21:14:12 +01:00
Eion Robb
6e78b51527 Missed a couple more binary file open()s 2015-10-25 15:32:03 +13:00
Eion Robb
7f64b57461 Set binary flag on open() calls so that windows doesn't terminate files early 2015-10-25 15:22:34 +13:00
Eion Robb
8562eb342c Allow compiling on Windows 2015-10-22 21:41:37 +13:00
Matthias Jentsch
ee9626e6da Merge remote-tracking branch 'wiederhake/beta4' into beta4 2015-10-20 12:38:40 +02:00
mjentsch
306273d4c4 Merge branch 'beta4-human-reable-user-names' into beta4 2015-10-17 18:09:42 +02:00
mjentsch
a3a35eb7ff Do not drop history or break conversations when buddy print name changes
Do not update blist buddy names, but set an alias instead to prevent breaking conversations or loosing history. Instead, keep the first print name as permanent user name
and set the alias on all buddy name changes. When interacting with purple always use the original buddy name stored in the blist instead of the print name provided by libpurple.
This allows both, meaningful names in group chats and permanent identifiers in the buddy list, while still propagating names changes to the interface.
2015-10-16 00:08:24 +02:00
Ben Wiederhake
b9a1ab23be Allow loading alternative pubkey from local, as a fallback. 2015-10-14 01:15:14 +02:00
Ben Wiederhake
65336849fb Beautify and fix strings (part 1/2). 2015-10-12 13:27:46 +02:00
Ben Wiederhake
f3acef6737 Fix a few unimportant memory leaks. 2015-10-07 22:07:56 +02:00
Ben Wiederhake
6e7e9ce862 Fix translations to be at least passable. 2015-10-07 22:07:56 +02:00
mjentsch
688f628890 Consolidate user messages 2015-10-06 19:23:07 +02:00
mjentsch
8009b8c0ac Translate strings in telegram-purple 2015-10-06 14:37:12 +02:00
mjentsch
08168c6339 Include translation functions and restructure includes 2015-10-06 14:28:13 +02:00
Ben Wiederhake
7ab7f4126e Avoid the PEM issue. 2015-10-04 17:51:49 +02:00
Ben Wiederhake
57e6a777d9 Build telegram-purple and libtgl without OpenSSL (skip when bisecting).
This version still tries to load a PEM file, although libtgl
--disable-openssl does not support it. Since there are several
ways to resolve it, this switch away from OpenSSL and its solution
should be different commits.
2015-10-04 17:51:49 +02:00
Ben Wiederhake
47bd4b2b33 Use new API, fix build system. 2015-10-04 17:51:49 +02:00
mjentsch
5064acaaf9 Cleanup an coding guidelines 2015-10-03 02:12:58 +02:00
mjentsch
4c576524e4 Move requests into separate file 2015-10-03 02:12:58 +02:00
mjentsch
620d4d5b8b Fix issue that caused newly created chats to not open 2015-09-08 17:06:56 +02:00
mjentsch
888cffffc1 Improve group chat management
Load full chat info lazily, prevents useless network request and should fix issues with delays through flood errors when handling big amounts of user chats. Handle chat participant deletions and additions correctly and only touch the user list when it is actually updated, this should fix some issues with printing annoying messages in Finch and users not showing up in the buddy list in certain situations. Only add chats to buddy list that are actively joined or receive incoming message, which should help keeping the buddy list more tidy when using much chats.
2015-09-08 17:06:56 +02:00
mjentsch
b5198b3184 Clean up and update README 2015-08-22 13:13:19 +02:00
mjentsch
0b95f05da0 Update libtgl 2015-08-16 21:35:43 +02:00
mjentsch
dc5bc8d039 Improve error handling 2015-08-01 23:34:00 +02:00
mjentsch
dd6031900e Cleanup 2015-07-30 21:49:13 +02:00
mjentsch
ea12251897 Fix chat creation 2015-07-30 21:46:03 +02:00
mjentsch
254293bc2c Display new chats after creation 2015-07-24 14:27:20 +02:00
mjentsch
287ace46a4 Support autocompletion in chat creation windows
Offer several autocompletion fields instead of a list of users in Adium and Pidgin.
2015-07-24 14:25:05 +02:00
mjentsch
3a2af54fad Coding style 2015-07-19 16:16:21 +02:00
mjentsch
747c214dcd Support creating new chats
Offer creating a new chat when trying to join a non-existing chat and
add user choice dialogue...
2015-07-18 03:00:11 +02:00
mjentsch
47812f2f72 Improve string sanitation in fallback chat 2015-07-11 19:34:19 +02:00
mjentsch
ed1f91123e remove unused functions and clean up 2015-07-11 17:44:49 +02:00
mjentsch
51064e06b4 Update tgl version 2015-07-11 17:41:50 +02:00
mjentsch
49cc80f8c0 Support two factor authentication 2015-05-29 18:25:55 +02:00
mjentsch
b5fb8df3b7 rename key visualization function 2015-05-24 00:23:28 +02:00
mjentsch
aec0cda21b Fix broken secret chats after reload 2015-05-23 02:06:40 +02:00