Commit graph

73 commits

Author SHA1 Message Date
vitalyster
30b1ad6ce8 boost::locale::generator: using default system locale 2017-06-27 14:57:35 +03:00
Florian Kinder
d93cc2ce66 General cleanup (#216) 2017-06-12 01:41:35 +03:00
Vitaly Takmazov
6b45e0e418 Swiften 4.0rc2 compatibility 2017-06-09 21:34:39 +03:00
Vitaly Takmazov
ba66032fbc libtransport: auto-register user when needRegistration is false 2017-04-11 07:50:17 -04:00
Manuel Mausz
f916febf5d Fix value_type definition of std::map. (#186)
Has to be std::pair<const Key, T>
2017-02-17 15:36:10 +03:00
Vitaly Takmazov
8891166382 libpurple: read boolean values from config as bool. Fixes #166 and #177 2017-01-19 06:43:21 -05:00
Vladimír Matěna
f328e80a97 Fix possible double free in ThreadPool
This makes HTTPRequestTest::GETThreadPool test pass deterministicaly.

Problem was static slot used to cleanup threads. When ThreadPool was instantiated
multiple times, threads were also clened up multiple times resulting in segfault.
2016-09-17 00:45:17 +03:00
Vladimir Matena
6d2f8c1927 Switch from boost shared pointers to stl shared pointers (#162)
* Swiften 4 support
* using standard shared pointers when compiling with Swiften 4
2016-09-12 19:20:58 +03:00
Vitaly Takmazov
621d85a64f MySQL: do not forget to use table prefix 2016-05-27 23:48:51 +03:00
Jan Kaluza
fe69cbd7a1 Web interface: support diplaying tables generated on transport's side 2016-03-06 20:13:52 +01:00
Jan Kaluza
6e1af765cd AdminInterface: Support labels for commands 2016-03-06 14:50:05 +01:00
Jan Kaluza
84ea5f3249 Libtransport, Web Interface: Rewrite the AdminInterface to support pluggable commands - use this API in Web Interface instead of coding one page per command. 2016-03-04 14:06:07 +01:00
Jan Kaluza
61e7cfaa7f Libcommuni treat ERR_NICKNAME colision the same way as ERR_NICKNAMEINUSE 2016-02-28 14:43:59 +01:00
Jan Kaluza
68527d73e2 Libtransport: Allow unregistered boolean variables in Config 2016-02-24 17:06:10 +01:00
Jan Kaluza
7500ab6c4c Libtransport: Fix memory leak in HTTPRequest, initialize CURL in the same thread as we use for its cleanup 2016-02-24 08:35:10 +01:00
Jan Kaluza
1e48fe7719 Libtransport: Fix memory leaks in tests, fix HTTPRequest memory leak in CURL code 2016-02-23 12:37:10 +01:00
Jan Kaluza
10f8f610d0 Libtransport: Fix 'register' command in AdminInterface 2016-02-22 09:23:23 +01:00
Jan Kaluza
5dd1aa90b4 Slack: Handle 'account_inactive' error 2016-02-21 19:43:39 +01:00
Jan Kaluza
4e25fa4e8e Stop reconnectTimer when no url is availablle 2016-02-20 17:54:36 +01:00
Jan Kaluza
00c5273fbb Slack: Handle channels starting with hash, do not reconnect to Slack RTM when URL expired 2016-02-20 07:23:07 +01:00
Jan Kaluza
fbfb07e8ba Libtransport: Try to leave only MUC conversations when disconnecting the user 2016-02-19 15:14:49 +01:00
Jan Kaluza
bff117e4ef Slack: For IRC allow registering without providing account name/password 2016-02-19 12:51:17 +01:00
Jan Kaluza
05b24bbd6e Slack: More logging 2016-02-19 12:00:54 +01:00
Jan Kaluza
3bfd7407b9 Libtransport: Send unavailable presence as a response to presence for exiting the room. Fixes room rejoin in Pidgin. 2016-02-19 10:24:13 +01:00
Jan Kaluza
9391c487b5 Web interface: Allow registering with no password 2016-02-19 09:16:08 +01:00
Jan Kaluza
65d5b4fe99 Libpurple: When service.web_directory and service.web_url is set, PURPLE_MESSAGE_IMAGES are stored to web_directory and link is forwarded to the user. Tested only with Facebook for now. Fix #106 2016-02-18 14:30:18 +01:00
Jan Kaluza
408413abf2 Libpurple: Try to get topic when conversation is presented by libpurple. 2016-02-18 12:25:29 +01:00
Jan Kaluza
99e958e8c8 Libtransport: Send self presence as first one when joining from second resource 2016-02-18 07:34:59 +01:00
Jan Kaluza
2ca447264a Libtransport: Debug message for Conversation::sendParticipants 2016-02-17 17:52:16 +01:00
Jan Kaluza
7ba8909d71 Use value_or instead of get_value_or 2016-02-15 12:21:04 +01:00
Jan Kaluza
26fc8a0323 Fix compilation with Swiften 3.0-rc2. This is now the minimal Swiften 3 version to compile with. Compilation with Swiften 2 is still supported. 2016-02-15 09:57:25 +01:00
Jan Kaluza
899d6fe53f Libtransport: Debug lost PING to backend 2016-02-11 14:42:17 +01:00
Jan Kaluza
8a903b9bfb Fix #111 - send the icon hash to the backend 2016-02-11 13:53:48 +01:00
Jan Kaluza
c80c02ccb1 Libtransport: Rename user when he tries to connect to room from second client with different nickname than he used with first client 2016-02-10 17:02:06 +01:00
Jan Kaluza
de8114d2da Libpurple: Do not change the nickname when joining the room when it is the same as the one used by the user 2016-02-09 08:01:04 +01:00
Jan Kaluza
80d1f8f90f Libtransport: Disconnect from room when user is connected using multiple resources and he just disconnects one of them without sending unavailable presences to the rooms 2016-02-08 20:13:43 +01:00
Jan Kaluza
18410fbf85 Libtransport: Make the error message more verbose when we are not able to load [logging] files 2016-02-08 15:18:03 +01:00
Jan Kaluza
9de5e656da Libpurple + Libtransport: Support aliases in rooms, fix joining rooms on protocols where you cannot join with custom nickname, show topic in the service discovery for rooms. 2016-02-08 09:26:34 +01:00
Jan Kaluza
39c8618da6 Libtransport: Allow setting room list per user 2016-02-07 20:53:35 +01:00
Jan Kaluza
5f04f45903 Libtransport: Fix #85 - Add iconhash field to Participant type. When backend uses that field, Frontends will ask for VCards with name set to 'room/user' format. 2016-02-06 15:51:11 +01:00
Jan Kaluza
66323700f5 Libtransport: Fix IQs forwarding in Raw XML mode + test it 2016-02-06 09:37:25 +01:00
Jan Kaluza
17f3dabe14 Libtransport: Fix and enable rawXML tests 2016-02-06 07:57:48 +01:00
Jan Kaluza
2b768b45ac Libtransport: Use \40 instead of % in room list 2016-02-05 08:42:41 +01:00
Jan Kaluza
10d29c265b Conversation: Use full JID escaping when \40 found in the room JID 2016-02-04 15:12:23 +01:00
Jan Kaluza
ddee629fe4 Libtransport: Fix crash in avatar handling code when storage backend is not set. Add extended_test for avatars using libpurple backend 2016-02-04 08:09:37 +01:00
Jan Kaluza
321215840b Fix #92 - Handle the XMPP user's VCard change and forward it to the backend. 2016-02-04 06:55:14 +01:00
Jan Kaluza
4353dbef02 Libtransport: Better WebSocketClient logging 2016-02-01 09:25:48 +01:00
Jan Kaluza
eb8f7ddad9 Slack: Better HTTPRequests logging 2016-02-01 08:17:16 +01:00
Jan Kaluza
9d2692c5d2 Fix #103 - Escape also nodes for MUC rooms in Conversation 2016-01-27 10:54:10 +01:00
Jan Kaluza
fd9c9af71b Slack: Send real team name chosen by user to Web interface, create channel chosen by the user when joining the room if it does not exists 2016-01-26 18:55:22 +01:00