Commit graph

360 commits

Author SHA1 Message Date
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
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
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
1e48fe7719 Libtransport: Fix memory leaks in tests, fix HTTPRequest memory leak in CURL code 2016-02-23 12:37:10 +01:00
Jan Kaluza
5dd1aa90b4 Slack: Handle 'account_inactive' error 2016-02-21 19:43:39 +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
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
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
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
17f3dabe14 Libtransport: Fix and enable rawXML tests 2016-02-06 07:57:48 +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
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
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
Jan Kaluza
c9cd2218b1 Slack: get the bot_access_token when requesting the token and use it to connect RTM 2016-01-24 13:04:32 +01:00
Jan Kaluza
b882942383 SlackUserRegistration: show raw data when team domain cannot be found in the response 2016-01-24 11:48:40 +01:00
Jan Kaluza
af75453834 Fix #86 - Support case-sensitive buddy names transparently. When lower-cased name is received from frontend, it is mapped to case-sensitive name sent by the backend originally. 2016-01-22 15:17:51 +01:00
Jan Kaluza
d45bd16104 Merge pull request #100 from vitalyster/manager_logging
Manager logging
2016-01-21 17:07:45 +01:00
Jan Kaluza
17fe52b61f Fix #98 - Leave the room internally when disconnecting user from room because of error. 2016-01-20 07:36:05 +01:00
Jan Kaluza
737aa148da Slack: Stop sending pings when disconnected from RTM 2016-01-18 13:19:18 +01:00
vitalyster
630438ec13 spectrum_manager: init logging 2016-01-12 15:52:50 +00:00
Jan Kaluza
8df5cd7d1b Spectrum2 manager server: Allow registration of users 2016-01-07 18:32:17 +01:00
Jan Kaluza
221b8ef7cf Do not reconnect frontend on every first pong received from backend, but only reconnect it on very first pong received by spectrum 2016-01-06 18:04:23 +01:00
Jan Kaluza
f592dc0ef3 Reconnect to Slack RTM when disconnected with an error 2015-12-28 09:17:41 +01:00
Jan Kaluza
004f941038 Slack: Handle disconnection from 3rd-party network 2015-12-21 13:41:30 +01:00
Jan Kaluza
83ba9855b5 Fix crash after HTTPRequestQueue destruction caused by HTTP response arriving after its destruction 2015-12-15 07:46:56 +01:00
Jan Kaluza
24d902983a Send list of online users to Slack channel when transporting to 3rd-party network room. 2015-12-07 18:17:04 +01:00
Jan Kaluza
26a01b8efa Slack: allow registering an account and chatting with normal contacts. 2015-12-04 20:21:36 +01:00
Jan Kaluza
9813552ebf Send api version to backend so it can use future features based on this version number 2015-12-03 12:19:34 +01:00
Jan Kaluza
ef1711db20 Send buddies to backend in new TYPE_BUDDIES message on login when features.send_buddies_on_login in backend config is set. 2015-12-01 06:39:01 +01:00
Jan Kaluza
6cfc7e7434 Do not start SlackRTM until we are really connected to WebSocket and the connection is upgraded 2015-11-25 17:02:51 +01:00
Jan Kaluza
fedd9216b2 Reconnect Slack RTM on connection error 2015-11-25 16:55:35 +01:00
Jan Kaluza
3fb55b243e Working Slack RTM and message receiving. 2015-11-24 21:00:04 +01:00
Jan Kaluza
5adb3d1f97 Support for registering OAuth2 users using spectrum2_manager + lot of Slack improvements 2015-11-24 12:26:26 +01:00
Jan Kaluza
3e75beb954 Almost working OAuth2 2015-11-23 09:07:38 +01:00
Jan Kaluza
15e16d709e Remove cpprest - we cannot use C++11 unfortunately. Make the Slack and XMPP frontends as a plugin (statically compiled for now) 2015-11-20 20:45:07 +01:00
Jan Kaluza
78e71f9345 Cleanup the includes, rename source code files to match the class name exactly 2015-11-18 14:05:57 +01:00
Jan Kaluza
fe47e0979b Split libtransport in two - libtransport and XMPPFrontend (lives in ./spectrum/src/frontends/xmpp). It's first step to allow generic Spectrum 2 frontends. 2015-11-16 10:49:10 +01:00
Jan Kaluza
d37e8afadb Use FormUtils in SettingsAdHocCommand 2015-11-13 07:15:27 +01:00
Jan Kaluza
d04f7e19a7 Add FormUtils methods to make XMPP Forms handling easier to read even when keeping it portable between swiften2 and swiften3. 2015-11-12 18:19:53 +01:00
Jan Kaluza
90ef6e3128 Fix HAVE_SWIFTEN_3 definition to work also in gcc. Fix the tests to work with swiften3 and also with swiften2. 2015-11-10 11:18:48 +01:00
Vitaly Takmazov
20d8dd690e fix tests (TODO filetransfer) 2015-10-15 15:41:16 +03:00
Vitaly Takmazov
0d99e8c85d Initial swiften 3 support 2015-03-31 14:14:15 +03:00
HanzZ
e91e25f449 Allow setting libpurple proxy 2013-03-07 12:45:47 +01:00