Commit graph

40 commits

Author SHA1 Message Date
mjentsch
838e08a0e8 Fix coding guidelines 2015-12-29 14:33:03 +01:00
mjentsch
6cadb04fbd Fix glib log errors on joining chats and clean up code 2015-12-29 14:32:13 +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
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
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
mjentsch
2d90f3ea03 More cleanup and refactoring 2015-11-21 22:14:57 +01:00
mjentsch
602edc8b5f Cleanup and coding guidelines 2015-11-21 16:30:50 +01:00
mjentsch
cb0bbe5b1c cleanup 2015-10-31 21:49:56 +01:00
mjentsch
81b64d7542 Fix "crashes" on name changes
Do not assume that a name for each ID can only be set once anymore.
Remove assertion that names always exist, return 0 instead and propagate
error handling to the calling function.
2015-10-31 20:09:31 +01:00
mjentsch
306273d4c4 Merge branch 'beta4-human-reable-user-names' into beta4 2015-10-17 18:09:42 +02:00
mjentsch
5c76324b78 cleanup 2015-10-17 00:00:25 +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
527f16985d Remove dead code 2015-10-11 14:17:47 +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
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
ffef370ae1 Translate a few more left-out strings 2015-10-06 14:37:12 +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
04df0afa95 Fix segfaults when adding chat 2015-09-17 00:00:53 +02:00
mjentsch
470f3fd5cb Fix joining by roomlist when setting an alias 2015-09-14 23:40:26 +02:00
mjentsch
4341bf0804 Fix showing joining chats by roomlist 2015-09-12 22:23:24 +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
ff2df0861b Add users in bulk to generate better join-messages in Finch 2015-09-08 17:06:56 +02:00
mjentsch
31c1037e4d Small fixes and cleanup 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
644416aa89 Display user aliases of users not in the buddy list in group chats 2015-09-08 17:06:55 +02:00
mjentsch
54c6f4d519 fix bug 2015-07-24 14:28:18 +02:00
mjentsch
8c859ad825 Fix bug that caused dropping of group chat messages when leaving the chat window open during reconnect 2015-05-30 15:55:13 +02:00
mjentsch
c6669a508d Don't display "empty chat" messages, created confusing output in a few cases. 2015-03-21 17:25:48 +01:00
mjentsch
293c6049a6 Display warning when opening a chat the current user is no longer a member of 2015-03-20 17:47:22 +01:00
mjentsch
b67c4115ff Repository cleanup and housekeeping 2015-03-12 01:56:16 +01:00
mjentsch
1e442ac195 Ensure that the message sequence doesn't get mixed up
Process incoming messages in a queue. Move all message-related functionality into one file.
2015-03-12 01:38:17 +01:00
mjentsch
2d94194d45 Fix segfault on automatic chat join
Check if peer was already allocated in chat_show. The auto-join flag can be safely ignored, all incoming chat messages are added to the chat anyways and will trigger an opening of the chat.
2015-03-07 16:21:26 +01:00
mjentsch
bb29ee82bc Rather just change this than fiddling around with c standards in the makefile 2015-01-28 19:43:42 +01:00
mjentsch
c85b8da619 Do not add group chats in which the user is not a member
Clean up and refactor group chat code, move chat functions into separate file, always load all chat infos on plugin load so we know the members.
2015-01-28 18:41:41 +01:00