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
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
1b1c5d132a
Remove overlooked incrementation of queries_num
2014-08-22 17:45:40 +02:00
mjentsch
54091b26e3
Log all output of verbosity-level 1 to libpurple log
2014-08-22 17:39:05 +02:00
mjentsch
e4bb5bf5a6
Count pending queries using the elements in the query tree, instead of counting the incoming and outgoing messages
...
Since the server is able to send queries without any response, and is also able to send multiple responses to an arbitrary query, the current way to count pending queries is not accurate and will lead to errors. Instead, the amount of queries in the query tree will be determined to decide whether there are pending messages.
2014-08-22 17:21:46 +02:00
mjentsch
e667299d2f
Add binlog to telegram struct
2014-08-22 17:14:08 +02:00
mjentsch
7720beab6e
Remove global configuration flags
2014-08-22 17:13:25 +02:00
mjentsch
32799a9086
Move binlog globals into a structure
2014-08-22 17:05:29 +02:00
mjentsch
331d631659
Ignore gdb files
2014-08-22 16:43:45 +02:00
mjentsch
188f890df5
Ignore app-hash
2014-08-08 08:46:39 +02:00
mjentsch
1170ae5710
Implement state machine for dc discovery and login.
2014-08-08 08:45:58 +02:00
mjentsch
f1a2738783
remove redundant functions from binlog
2014-08-08 08:44:56 +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