Commit graph

119 commits

Author SHA1 Message Date
mjentsch
af200e0b38 Support for messages replies 2017-07-17 00:13:40 +02:00
mjentsch
1b9b25cfa6 Drop old history correctly 2017-06-30 23:11:40 +02:00
Ben Wiederhake
550dc485c0 Strip Pidgin's broken <span> markers
Fixes #305, fixes #339, fixes #394

Quick and dirty solution, by just checking for these tags by string matching.
This technically introduces a new bug:
If pidgin adds *two* tags like this:
    <span>First text</span><span>Second text</span>
… then everything goes bad.  We won't try to salvage messages which are broken like this.
2017-06-15 20:31:53 +02:00
Ben Wiederhake
798fc13578 Add translation comments 2017-04-12 01:23:20 +02:00
mjentsch
712bc530c6 Add option to auto-load or discard file transfers 2017-04-02 19:23:52 +02:00
mjentsch
942e7c6244 Include autoloading for all types of documents and improve document captions 2017-03-13 22:28:10 +01:00
Ben Wiederhake
f45ed4572a Print some info when running into 'Sending message failed' errors
Related to #339
2017-01-09 18:22:17 +01:00
mjentsch
e926b216b6 Fix code style 2016-06-30 19:29:55 +02:00
mjentsch
786394bb3e Fix history in Adium, store channel sequence as account options instead of the blist 2016-04-03 17:04:35 +02:00
mjentsch
413e449112 cleanup 2016-04-02 22:28:03 +02:00
mjentsch
5f7da0ab50 Fix use-after-free, improve forward messages 2016-04-02 22:00:08 +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
921db6bc5c Fix outgoing message handling 2016-03-28 01:12:35 +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
952a41f1ed Update tgp-msg.c to flag outgoing messages as HTML 2016-03-27 03:00:23 +02:00
mjentsch
236153cee7 Reduce the amount of needless read recipes being sent 2016-03-23 12:47:24 +01: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
mjentsch
abbaad7a0c Support leaving channels and exporting channel invite links 2016-02-14 00:34:30 +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
90a4286e90 Fix compilation error 2016-01-24 20:40:36 +01:00
mjentsch
ac1c748650 Merge branch 'master' into dev-1.3.0 2016-01-24 18:22:18 +01:00
mjentsch
9cd264dea6 Still display the message when the chat info cannot be fetched
User objects will be allocated once they send a message that needs to be displayed, until then the users will just not show up in the user list of the chat.
2016-01-24 15:17:54 +01:00
mjentsch
739f2b7e46 Improve error handling a little more 2016-01-24 15:17:54 +01:00
mjentsch
6a8760d5d3 Graceful error handling
Never kill process on issues, always log errors and write errors instead of failed messages.
2016-01-24 15:17:54 +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
be4f5877c4 Fix compilation error 2016-01-02 00:22:17 +01:00
mjentsch
97f26e9b24 Merge branch 'master' into dev-1.3.0 2016-01-02 00:09:57 +01:00
mjentsch
edd86b60e2 Allow sending "cleartext" img tags in Adium
Adium does not use <img> tags for outgoing inline pictures in messages,
but initalizes a file transfer on its own. Additionally, they also don't
escape outgoing user-entered HTML, which means we must not search for outgoing HTML
<img> tags when using Adium, otherwise we would skip actual message
content.
2015-12-30 17:52:25 +01:00
mjentsch
3b3a4eafc2 Merge branch 'dev-1.2.3' into dev-1.3.0 2015-12-30 16:32:28 +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
c8befa2c9e Display correct display time for special chats
Bug was introduced a few commits earlier in the test branch during refactoring.
2015-12-07 23:45:15 +01:00
mjentsch
85e7f17e65 Display newly added channels as online 2015-12-07 23:39:53 +01:00
mjentsch
d1d03da879 Create a channel that is created in other clients during the session 2015-12-07 22:28:09 +01:00
mjentsch
bab470cf1f Support posting documents to channels 2015-12-07 00:27:16 +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
mjentsch
9019ee1038 Comment-out unused function 2015-12-05 10:48:31 +01:00
mjentsch
eebd337929 Upgrade libtgl that supports layer 42 2015-12-03 23:16:28 +01:00
mjentsch
3670c41f41 Push partial implementation of displaying forwarded messages 2015-12-03 21:31:00 +01:00
mjentsch
a412ae2c19 Prevent frightening "directory could not be deleted" error
If an image is not found its filename will be NULL, which will cause build_filename to just return path of the tmp dir. When passing a directory to set_file_contents, it will attempt to unlink it (as the file already exists), but fail doing do, since unlink doesn't work on directories. This will still cause a scary warning message about "not being able to delete the tmp directory", which is now no longer printed.
2015-12-01 21:00:32 +01:00
mjentsch
2c21b59445 Fix memory leak 2015-12-01 20:55:14 +01:00
mjentsch
b3d09c1565 Fix redundant message when users are leaving chats
Do not display an extended reason when a user leaves on its own. Such a message makes only sense when a user is removed by somebody else.
2015-11-29 14:41:31 +01:00
mjentsch
5502824ac4 Clean up, refactoring and fix coding guidelines 2015-11-28 20:17:47 +01:00
mjentsch
5428b39547 Fix messages not being marked as read despite sending responses or typing 2015-11-28 02:33:50 +01:00
mjentsch
601440004a Fix read recipes only sent on next incoming message / read recipe 2015-11-28 02:14:31 +01:00
Ben Wiederhake
77317fb99f Add plural support
Fixes #139.
2015-11-26 08:23:25 +01:00
Ben Wiederhake
954ed6048b Clarify messages, use 'please' where appropriate 2015-11-26 08:23:25 +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