Commit graph

253 commits

Author SHA1 Message Date
mjentsch
77d50c3ae1 Merge branch 'EionRobb-group-typing-notifications' into dev-1.4.0
Merges pull request #359
2017-03-13 22:32:15 +01:00
Eion Robb
0446ca2b9b Support typing notifications using the group-typing-notifications plugin
See https://github.com/EionRobb/pidgin-groupchat-typing-notifications
2017-03-13 22:27:01 +13:00
mjentsch
ab5b444e26 code style 2017-03-06 20:13:45 +01:00
Eion Robb
71276b109e Add support for a /kick command in chat rooms 2016-11-13 09:22:28 +13:00
Ben Wiederhake
de3100e6f2 Minor typos 2016-08-08 10:25:11 +02:00
mjentsch
0926d27195 Fix dropped HTML messages
Remove ability to send bold and italic messages to quick-fix a bug that causes
messages with unknown formatting to be dropped by libtgl.
2016-08-08 00:03:19 +02:00
Ben Wiederhake
99d684bf89 Check for error return values of tgl_init 2016-08-02 01:10:02 +02:00
mjentsch
daeb7db701 Only fetch history for joined channels
Prevent loading history for non-joined channels that may occur when messages forwarded for non-joined channels are being fetched.
2016-04-03 17:16:13 +02:00
mjentsch
e73e247444 Auto-load audio, video and animated messages up to 8mb
Reduce the amount of annoying popup messages for file transfers. Don't do it for Adium, which doesn't support file-links for security reasons. Make the threshold configurable.
2016-04-02 21:58:08 +02:00
mjentsch
a35c6cdd3b Support sending code tags and improve inline image handling
Properly parse inline img tags in messages to support multiple inline messages in one message.
Adium: remove adium-specific code path and allow embedding markup in outgoing message
2016-03-27 03:00:23 +02:00
Eion Robb
7205b4df1b Update telegram-purple.c to say that the connection supports HTML messages 2016-03-27 03:00:23 +02:00
mjentsch
004f84b544 Experimental support for channel history
Fetch missing channel history, keep track of message IDs. Still broken in Adium.
2016-03-23 12:46:04 +01:00
Ben Wiederhake
dd349ff7cb Fix typos and errors in strings 2016-02-18 21:41:59 +01:00
mjentsch
abbaad7a0c Support leaving channels and exporting channel invite links 2016-02-14 00:34:30 +01:00
mjentsch
496eb6328f Add hint for phone number 2016-02-10 23:23:54 +01:00
mjentsch
581e024254 Display chat and channel icons, refactor image loading code 2016-02-10 02:03:46 +01:00
mjentsch
1070b5a6e7 Cleanup and add a few notes 2016-02-07 18:23:12 +01:00
mjentsch
fbe3a7fbba Support supergroups and displaying channel members
Change all channels to be chats instead of regular buddies and implement fetching channel memberships. Remove some unneeded code scraps from old channel handling.
2016-02-07 00:04:31 +01:00
mjentsch
69acd90512 Support deleting contacts, handle deletions of chats and channels
When a user deletes a buddy list entry, ask if the chat or channel should be destroyed / left or the contact should be deleted. In many cases, deleting a buddy from the blist would have no effect, since the buddy would show up again on the next startup, which is most likely confusing to the user. Just destroying the chat or the channel is dangerous too, so ask for confirmation every time this happens to let the user choose what to do with that entry.
2016-01-25 00:59:56 +01:00
mjentsch
8100114319 Handle contacts added on different devices
Assure to add contacts, even when they are not in the dialog list. Refactor contact handling.
2016-01-25 00:51:33 +01:00
mjentsch
00b709e39f Display incoming read recipes for secret chats
Outgoing still don't work they aren't implemented in libtgl yet.
2016-01-24 22:16:20 +01:00
mjentsch
af70b22699 Handle group chats more intuitively
Remove all left chats from buddy list when selecting to auto-join chats and also make that option default.
2016-01-24 21:36:41 +01:00
mjentsch
660376b9df Remove all left chats
Use new TGLCF_LEFT instead of user count to determine left chats more reliably.
2016-01-24 21:29:48 +01:00
mjentsch
ac1c748650 Merge branch 'master' into dev-1.3.0 2016-01-24 18:22:18 +01:00
mjentsch
68b71dae70 Fix tgp version displayed as NULL in sessions
Set telegram-purple version in app data, to make the correct version
show up in the session dialogue.
2016-01-24 16:11:33 +01:00
mjentsch
1808ca4984 Automatically refresh revoked sessions and prompt for a new code 2016-01-24 15:17:54 +01:00
mjentsch
6eee0c3c43 Use flags instead of users_num to check if a chat is already left 2016-01-12 23:53:49 +01:00
mjentsch
d8fc5281ce Fix buddy icon refreshing and refactor user info and icon handling
Keep track of loaded pictures to refresh user pictures more reliably. Create new file tgp-info to contain all code related to user information and icons. Clean up the messy code for fetching user info and user pictures and provide a streamlined function in tg-info.
2016-01-10 01:27:38 +01:00
Ben Wiederhake
8e3cebf165 Output commit in debug message on startup
Fixes #214.
2016-01-07 10:53:07 +01:00
mjentsch
3b3a4eafc2 Merge branch 'dev-1.2.3' into dev-1.3.0 2015-12-30 16:32:28 +01:00
mjentsch
c536cf0aec Ask if secret chats should be accepted by default 2015-12-29 23:47:12 +01:00
mjentsch
c0f3020884 Fix group chats auto-initialized in wrong group 2015-12-29 22:18:11 +01:00
mjentsch
46485a08c3 Remove redundant code
Existance of print_name is already assured in the check above.
2015-12-29 15:28:57 +01:00
mjentsch
67bc9cea92 Remove testing / debugging code 2015-12-29 12:27:21 +01:00
mjentsch
fc9a7ebb2e cleanup 2015-12-29 12:20:06 +01:00
mjentsch
b2541f14d4 Fix user alias not updated on name changes 2015-12-28 17:49:34 +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
c099d49f41 Do not display read recipes for non-user messages 2015-12-20 15:57:22 +01:00
mjentsch
b828460886 Merge branch 'dev-1.2.3' into dev-1.3.0 2015-12-19 22:02:54 +01:00
mjentsch
65c96cae5a Fix secret chats not being properly canceled 2015-12-19 02:25:04 +01:00
mjentsch
00bf713c43 Fix secret chat not being removed when the other peer ends it 2015-12-19 02:25:04 +01:00
mjentsch
88d3963929 Fix compiler warning
Remove unused function
2015-12-18 23:09:12 +01:00
mjentsch
b85fc85322 Fix auto-joining chats 2015-12-18 22:59:51 +01:00
mjentsch
18c2539f75 Fix regressions: chat actions not available for chats 2015-12-09 01:08:45 +01:00
mjentsch
b1fb7e500c Improve logging of peer flags 2015-12-08 11:24:01 +01:00
mjentsch
618cbf7001 Handle channel photo updates and channel deletions
Change channel photo on update, delete channels from blist when leaving.
2015-12-07 23:15:17 +01:00
mjentsch
60d6b3c8e5 Improve error handling when sending to non-ready secret chats 2015-12-07 00:32:54 +01:00
mjentsch
350bdad82e Improve error handling for channels 2015-12-07 00:26:21 +01:00
mjentsch
5bd31bdae0 Add basic channel support 2015-12-06 23:46:09 +01:00
mjentsch
498f87eff5 Remove code duplication 2015-12-06 22:57:50 +01:00