Commit graph

253 commits

Author SHA1 Message Date
mjentsch
5f2da4b4fc Avoid nullpointer dereference when purple requests actions on deleted telegram secret chats 2015-10-16 23:32:49 +02:00
mjentsch
3f2f557284 Use clearer names for name and id resolution functions and clean up 2015-10-16 22:45:21 +02:00
mjentsch
a2fc31cda7 Fix service message formatting in Adium
Adium drops MESSAGE_SYSTEM flags in serv_got_im, directly write to the conversation in case the message contains such a flag.
2015-10-16 00:33:23 +02:00
mjentsch
adeacb7c42 Remove flag that is no longer used in update_buddy 2015-10-16 00:15:37 +02:00
mjentsch
b25eeb6951 Cleanup and coding style 2015-10-16 00:14:36 +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
829b9f996f Mark static function as static. 2015-10-14 01:15:14 +02:00
mjentsch
cf8f4da2fb Assure that buddy names and images are being updated correctly 2015-10-11 23:51:40 +02:00
mjentsch
365f7b1da1 Provide utility function for printing system messages in all chat types 2015-10-11 14:19:37 +02:00
mjentsch
61597e9101 Remove manual "group" creation, use blist utility function instead 2015-10-11 14:18:42 +02:00
mjentsch
4eeb7f73c9 Overhaul username handling
Use print names instead of ids as usernames, to fix problems with "useless" user ids showing up for unknown users and in group chats. Remove workarounds like "Telegram Foreign" needed to temporarily store user names for alias resolution.
2015-10-11 14:17:24 +02:00
Ben Wiederhake
0dc2c750ae Fix typo.
Beleive it or not, credits for discovering this typo go to
...
lintian.

This thing is a hell of a tool. Thank you, lintian developers.
2015-10-07 23:54:55 +02:00
Ben Wiederhake
6e7e9ce862 Fix translations to be at least passable. 2015-10-07 22:07:56 +02:00
mjentsch
6be41aa18b Add even more missing translation strings 2015-10-07 03:06:08 +02:00
mjentsch
6d16be5238 Support installing/uninstalling the localizations 2015-10-07 01:38:17 +02:00
mjentsch
2abe43cd96 Fix plugin init function
Change include order to not fail PURPLE_PLUGIN_INIT.
2015-10-07 01:30:28 +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
47bd4b2b33 Use new API, fix build system. 2015-10-04 17:51:49 +02:00
mjentsch
4c576524e4 Move requests into separate file 2015-10-03 02:12:58 +02:00
mjentsch
586268424a Merge branch 'fix-group-participant-aliases' 2015-09-17 20:06:18 +02:00
Shlomi Fish
f6f01c848f Remove executable bit 2015-09-16 17:48:56 +03:00
mjentsch
50367783db Do not display outgoing captioned images in group chats twice 2015-09-14 22:03:36 +02:00
mjentsch
32161b1558 Revert "Fix auto joining chats on connection"
This reverts commit fa9b331b39.
2015-09-13 22:24:22 +02:00
mjentsch
114dedcdc9 Do not add deleted users to buddy list and clean up a bit 2015-09-13 15:50:16 +02:00
mjentsch
fa9b331b39 Fix auto joining chats on connection
Only set the connection status to online when all chat info was fetched,
to avoid annoying chat creation requests on startup.
2015-09-12 22:38:28 +02:00
mjentsch
dac0632ab1 Coding style and cleanup 2015-09-12 22:22:40 +02:00
mjentsch
c3f48b9835 Don't automatically add all chats to the buddy list
This should fix issue where left chats show up in the blist and cannot be removed anymore and broken Adium bookmarks.
This patch should make the whole chat handling much more native to libpurple, in which chats are added through the chatlist,
the join-chat window or automatically when incoming messages are received. Add a new option "Add chats to buddy list" in
case anyone wants the old behavior.
2015-09-12 22:21:27 +02:00
mjentsch
ce51b0bb68 Provide chat info defaults to allow joining chats from roomlist 2015-09-12 12:34:23 +02:00
mjentsch
d9ca1c0f51 coding style 2015-09-08 22:17:43 +02:00
mjentsch
4670e3ede4 Don't add contacts when adding new buddy
The user should be able to just add buddies to the buddy list without any further side effects, especially
considering you now need to add any user not in the dialog list if you want him to show up.
2015-09-08 22:16:53 +02:00
mjentsch
e82fef3826 Prevent flood warnings
Only load user info on first start when the user actually has a pic to display.
2015-09-08 22:09:15 +02:00
mjentsch
546bcdc760 cleanup 2015-09-08 22:07:27 +02:00
mjentsch
de131bd3cc Fix bug that caused dialog list to not be loaded 2015-09-08 21:06:12 +02:00
mjentsch
5d187216cf Only get user info for dialogs that actually have a photo 2015-09-08 19:27:58 +02:00
Matthias Jentsch
2d7d1016a8 Better input validation for phone numbers 2015-09-08 17:06:57 +02:00
mjentsch
e665729ee2 Do not remove contact when deleting buddy list node, this is not obvious to the user 2015-09-08 17:06:56 +02:00
mjentsch
31c1037e4d Small fixes and cleanup 2015-09-08 17:06:56 +02:00
mjentsch
3dfb1ac17e Make sure to clear users when leaving chat with non-pidgin clients 2015-09-08 17:06:56 +02:00
mjentsch
a5cef7dcaa Add support for roomlists 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
abd316a659 Support leaving and deleting chats 2015-09-08 17:06:55 +02:00
mjentsch
8e87c16c75 Update own user-name properly 2015-08-29 14:22:32 +02:00
mjentsch
793b1fc0fb Disable defective set_buddy_icon temporarily 2015-08-29 12:57:16 +02:00
mjentsch
2b15603685 Always add secret chats to buddy list
Active secret chats should always show up in the buddy list, since there's the only endpoint for a conversation.
2015-08-29 12:56:36 +02:00
mjentsch
f5ec7f3e80 Rework buddy list handling
Only add buddies that are on the dialogue list or were explicitly added by the user, to prevent adding non-related users that are now allocated due to protocol updates.
2015-08-22 13:07:11 +02:00
mjentsch
0b95f05da0 Update libtgl 2015-08-16 21:35:43 +02:00