mjentsch
7d63485e0a
Fail gracefully on error responses by server
2014-10-06 22:58:16 +02:00
mjentsch
2f7f2068de
Improve event handling-system
2014-10-06 22:57:20 +02:00
mjentsch
290a3251e6
Remove unused code
2014-10-06 22:56:02 +02:00
mjentsch
4b7b1e0010
Fix includes and remove obsolete code
2014-10-05 12:25:23 +02:00
mjentsch
84e549fc96
Use correct DC number for our updated application configuration
2014-10-03 18:21:20 +02:00
mjentsch
334101c406
Improve logging system
2014-10-03 14:23:15 +02:00
mjentsch
598559105f
Fix importAuthorization
2014-10-02 23:10:23 +02:00
mjentsch
5c488f9c8d
Support downloads from foreign DCs
2014-10-02 12:29:02 +02:00
mjentsch
a6013016f1
Ensure that download directory exists
2014-09-21 00:11:07 +02:00
Christopher Althaus
164620f65d
Add show user icons in buddy list
2014-09-20 23:20:14 +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
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
4f33201d09
Don't leak data center list when closing down telegram
2014-09-04 22:07:25 +02:00
mjentsch
0aa8a9de15
Remove "_network" from telegram connect function
2014-09-01 22:14:40 +02:00
mjentsch
b90c9453da
Free memory and close connections on disconnect
2014-09-01 21:57:35 +02:00
Christopher Althaus
fa9d45bd20
User State/Typing implemented
...
Send Messages activated
2014-08-23 16:23:37 +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
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
mjentsch
1e6598c11c
Request proxy connections by callback
...
Require the user of telegram to provide a callback to create and cleanup proxy connections, to allow
the application to create new connections when needed.
2014-08-22 18:28:58 +02:00
mjentsch
54091b26e3
Log all output of verbosity-level 1 to libpurple log
2014-08-22 17:39:05 +02:00
mjentsch
32799a9086
Move binlog globals into a structure
2014-08-22 17:05:29 +02:00
mjentsch
1170ae5710
Implement state machine for dc discovery and login.
2014-08-08 08:45:58 +02:00
mjentsch
9e5b4ca5ec
Refactor - Intermediate Commit 3
2014-08-06 19:45:46 +02:00
mjentsch
8a2c043db4
Refactor - Intermediate Commit 2
2014-07-29 15:36:59 +02:00
mjentsch
ed7aa7de5b
Refactor Intermediate State 1
2014-07-29 15:36:59 +02:00
mjentsch
7fad1403ec
Fetch chats and refactor libtelegram api
2014-07-11 19:57:32 +02:00
mjentsch
43a5a80c48
Set up stub for telegram library
2014-07-11 01:13:01 +02:00