Commit graph

720 commits

Author SHA1 Message Date
mjentsch
55949d8d92 Update build tool dependencies and add a new configure 2014-09-20 18:13:02 +02:00
mjentsch
81e9eed71f Ignore core dumps 2014-09-20 18:12:00 +02:00
mjentsch
73f44ffe0b Remove non-working checks for glib and libpurple (for now) and generate a new configure 2014-09-20 16:57:50 +02:00
mjentsch
92a57d18bb Don't check for libreadline and but check for glib and libpurple in configure 2014-09-20 16:24:43 +02:00
mjentsch
cd8866c4e2 Remove unused includes of libreadline 2014-09-20 16:23:39 +02:00
mjentsch
7fa1600e0b Add log output for received message types 2014-09-20 10:04:40 +02:00
mjentsch
c1f170467c Flush connection after execiton of timer function 2014-09-20 10:02:49 +02:00
mjentsch
4c358b6962 Don't open multiple chats when multiple messages arrive while a chat is still not joined 2014-09-19 18:22:11 +02:00
mjentsch
bb87200d5f Fix a bug that caused old messages to not be loaded on startup
Do not overwrite state file with secret chat file, provide flag for complete sync from start in do_get_difference
2014-09-18 22:26:08 +02:00
mjentsch
4a062b764f Use a separate handles for each mtproto_connection 2014-09-17 22:51:46 +02:00
Matthias Jentsch
dcf9b4f427 Do not free tree elements manually, the tree already does that 2014-09-10 18:09:57 +02:00
Matthias Jentsch
703d6e9e2e Remove overlooked merge leftovers 2014-09-10 16:23:44 +02:00
mjentsch
1f7f768bb5 Merge branch 'master' of bitbucket.org:telegrampurple/telegram-purple
Conflicts:
	purple-plugin/telegram-purple.c
2014-09-09 19:14:28 +02:00
mjentsch
07a0766948 Fix sending and receiving of messages in group chats
Add received messages to correct group chat, open closed chats on received messages, display our name correctly, handle messages from ourself correctly.
2014-09-08 23:10:25 +02:00
mjentsch
00944910bc Remove pinging 2014-09-08 23:09:55 +02:00
mjentsch
7d8ec1ef42 Add missing message allocated handlers 2014-09-08 23:09:20 +02:00
Christopher Althaus
9d23ecac7f Added group chat functions 2014-09-07 21:44:37 +02:00
mjentsch
956a034be1 Add group chats 2014-09-07 20:56:44 +02:00
mjentsch
709b7f2cdb Use current home for config instead of a static directory 2014-09-07 13:48:25 +02:00
mjentsch
f0447fa958 Free all pending timers and queries after erroring 2014-09-06 01:09:47 +02:00
mjentsch
ce96381ef9 write secret chat file into user-specific directory and fix config path creation 2014-09-06 01:04:57 +02:00
mjentsch
40485fabdc Remove unused code 2014-09-05 21:23:22 +02:00
mjentsch
a05b3b8405 fix typo 2014-09-05 21:19:37 +02:00
mjentsch
4f33201d09 Don't leak data center list when closing down telegram 2014-09-04 22:07:25 +02:00
mjentsch
a7bb59a13a move message store size into telegram.h 2014-09-01 22:25:02 +02:00
mjentsch
178583cd72 Clean up whitespaces and ugly code 2014-09-01 22:23:59 +02:00
mjentsch
f39eaa5f99 Fix telegram-purple functions that broke when removing globals 2014-09-01 22:21:45 +02:00
mjentsch
305253b3f6 Add a few comments 2014-09-01 22:17:42 +02:00
mjentsch
0aa8a9de15 Remove "_network" from telegram connect function 2014-09-01 22:14:40 +02:00
mjentsch
fa457a6900 Clean up out-commented code 2014-09-01 21:59:23 +02:00
mjentsch
b90c9453da Free memory and close connections on disconnect 2014-09-01 21:57:35 +02:00
mjentsch
d94dc52df0 Remove remaining global variables 2014-09-01 21:43:22 +02:00
mjentsch
2e50ec47b7 Merge user-status 2014-08-23 17:36:52 +02:00
mjentsch
6706ac14cb Merge branch 'States' 2014-08-23 16:42:14 +02:00
Christopher Althaus
6441c6be4b Fixed telegram notification client bug 2014-08-23 16:40:30 +02:00
Christopher Althaus
fa9d45bd20 User State/Typing implemented
Send Messages activated
2014-08-23 16:23:37 +02:00
mjentsch
386abe2ab9 Merge branch 'refactor-telegram-cli' 2014-08-23 13:03:55 +02:00
mjentsch
5a425be62f Remove unused code and build files 2014-08-23 12:57:38 +02:00
mjentsch
832cf949f0 Fix message allocation 2014-08-23 11:18:42 +02:00
mjentsch
eec5ea50aa Remove globals containing account and connection from the purple plugin to enable multiple connections 2014-08-23 02:56:47 +02:00
mjentsch
dddbe451c1 fix a bug in the configuration writer
creates new configuration files readable and writable
2014-08-23 02:55:13 +02:00
mjentsch
7ee334ec37 Fix user registration 2014-08-23 02:52:04 +02:00
mjentsch
32039628a6 Remove unneeded commented code 2014-08-23 02:44:57 +02:00
mjentsch
d062ec44d0 Switch to ready-state when the data center is already registered 2014-08-23 02:41:26 +02:00
mjentsch
a4e5449d5a Move telegram callbacks and settings into configuration struct 2014-08-23 02:40:10 +02:00
mjentsch
f09b4c1c87 Move config function to avoid predeclaration 2014-08-22 19:02:11 +02:00
mjentsch
c81ce16e80 Fix coding style and add missing docstrings 2014-08-22 18:57:14 +02:00
mjentsch
8ff9734077 Handle the SWITCH_DC RPCError by changing the data center and creating a new mtproto_connection 2014-08-22 18:54:25 +02:00
mjentsch
5d8d170927 Use allocation utilities from utilites.h and initiate telegram with zeroes 2014-08-22 18:44:23 +02:00
mjentsch
c144484fd5 Add memory management for mtproto_connections
Mark connections for destruction on close and free all allocated memory only once all incoming queries are read, since those queries will still access data on the current mtproto_connection and cause segmentation faults.
2014-08-22 18:41:35 +02:00