Commit graph

58 commits

Author SHA1 Message Date
mjentsch
83c09aeed3 Remove useless protocoll options 2014-10-03 18:24:16 +02:00
mjentsch
84e549fc96 Use correct DC number for our updated application configuration 2014-10-03 18:21:20 +02:00
mjentsch
e3d6f02a67 Add form for phone registratrion 2014-10-03 17:34:10 +02:00
mjentsch
334101c406 Improve logging system 2014-10-03 14:23:15 +02:00
mjentsch
97c8b37121 Do not use old tg-cli directory for storing files 2014-10-02 13:30:44 +02:00
mjentsch
d4eff42a42 Use our own application configuration 2014-10-02 13:29:54 +02:00
mjentsch
3fa72a9d42 Remove unused binlog functions 2014-10-02 13:01:28 +02:00
mjentsch
1954cb0d63 Add hotfix for "new group message"-infinite loop 2014-10-02 12:31:17 +02:00
mjentsch
5c488f9c8d Support downloads from foreign DCs 2014-10-02 12:29:02 +02:00
mjentsch
d6530b69bb Don't show info window on first user load 2014-09-21 22:30:50 +02:00
Christopher Althaus
164620f65d Add show user icons in buddy list 2014-09-20 23:20:14 +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
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
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
a05b3b8405 fix typo 2014-09-05 21:19:37 +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
2e50ec47b7 Merge user-status 2014-08-23 17:36:52 +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
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
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
a4e5449d5a Move telegram callbacks and settings into configuration struct 2014-08-23 02:40:10 +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
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
f78adc8b96 Support sending messages 2014-07-11 02:19:05 +02:00
mjentsch
43a5a80c48 Set up stub for telegram library 2014-07-11 01:13:01 +02:00
mjentsch
6a439a5d55 Move everything into one Makefile
Avoid having to execute two different make commands to properly build the plugin, when there are changes in the telegram-cli files.
2014-07-08 21:17:50 +02:00
mjentsch
f28d89c9c6 Replace tabs with 4 spaces 2014-06-27 09:35:47 +02:00
mjentsch
6325bd108d Listen to changed users and add new chats to the current sessions 2014-06-22 23:39:05 +02:00
mjentsch
0945a3ca11 Add event handler functionality to tg-cli 2014-06-22 23:38:06 +02:00
mjentsch
a005c015cd Implement phone number registration
When the current phone number is not registered with the telegram network, ask for first and last name and proceed with the regular sms-code authentication scheme.
2014-06-15 19:58:49 +02:00
mjentsch
62090b3ca0 Implement login and authentication mechanism and fix the logging mechanism
Use purple debugging functions by formatting the string beforehand and then passing the readily formatted string, instead of doing it with va_list. Log into the telegram network using the provided SMS code and hash or request a new one, in case one of those isn't provided. Store and load the state using the file config/auth, to be able to restore previous logins.
2014-06-15 13:38:38 +02:00