Commit graph

419 commits

Author SHA1 Message Date
Vitaly Takmazov
d363189d97 MSVC compatibility fixes 2017-06-14 19:40:45 +03:00
Vitaly Takmazov
6b45e0e418 Swiften 4.0rc2 compatibility 2017-06-09 21:34:39 +03: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
Vladimír Matěna
0729d364ca Fix double free in DummyConnectionServer
Do not create shared ptr from this as this lead to double free in
UserRegistryTest::login test. Shared ptr was needed to set event
owner in acceptConnection, actually it is never needed as events
are never filtered by owner. Thus it was removed and there is no
need to create shared ptr from this.
2016-09-17 00:45:34 +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
6dd3863200 Do no create Swift::JID with an empty node 2016-02-08 16:00:17 +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
f57f06b633 Fix #96 - Do not include boost/move/utility.hpp 2016-01-20 09:30:10 +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
36b444536c Fix regression when 'from' attribute has not been sent in some situations in server mode. 2015-12-14 13:59:05 +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
5c5cd0e346 Merge branch 'master' of github.com:hanzz/libtransport 2015-12-01 08:48:28 +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
Vitaly Takmazov
dc2fb45f8e SecureTransport server stub for Swiften3 2015-11-29 22:43:32 +03: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
3df6d53f23 Add cstdint.hpp 2015-11-25 07:16:46 +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
ad127c5dd6 Add just explicit_operator_boool 2015-11-24 12:22:12 +01:00