about summary refs log tree commit diff stats
path: root/src/xmpp/session.c
Commit message (Collapse)AuthorAgeFilesLines
* fix more memory leaksSteffen Jaeckel2023-01-181-1/+1
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* add `now` option to `/reconnect` commandSteffen Jaeckel2023-01-181-6/+4
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Make mood display optionalMichael Vetter2022-06-221-2/+8
|
* fix handling of connection errorsSteffen Jaeckel2022-02-081-3/+2
| | | | | | | | | | | | | When a `see-other-host` stream-error is received we try to re-connect to the other host. Erroneously this also started the `reconnect_timer`. This lead to the behavior that in cases where e.g. the login failed we try to reconnect instead of bailing out with an error. This commit fixes the wrong behavior by not starting the `reconnect_timer`. Fix 0e58509c161ae8409c9accabb9606e0c7006b880 Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* handle `see-other-host` XMPP stream errorSteffen Jaeckel2022-02-011-1/+32
| | | | | | Fixes #1628 Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* session: combine internal free-functionsSteffen Jaeckel2022-02-011-12/+8
| | | | | | `_session_free_saved_details()` remains as it's still required alone Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* xep-0107: code reviewDebXWoody2021-12-061-9/+7
| | | | | | | | * Remarks in the Merge Request (ac_reset, help) * Defines in iq.c * Mood help and null check * Added additional information about tab key in CMD_DESC. * Added additional null check
* Add xep-0107: User Mood supportDebXWoody2021-12-061-0/+35
| | | | Implementation of XEP 0107 - User Mood
* Format new register code correctlyMichael Vetter2021-10-131-1/+0
|
* registration: remove auth param and excess functionsswirl2021-08-171-37/+0
|
* fixed some bugs, added some moreswirl2021-08-171-0/+40
| | | | | | | | | - Added JABBER_RAW_CONNECT[ING/ED] connection states - Added cl_ev_connect_raw and session_connect_raw to conform to normal connection functions - Fixed SIGABRT during registration - Added a check in cmd_register to ensure it's actually connected before registering--but this will always fail atm
* Apply coding styleMichael Vetter2020-07-071-34/+34
|
* Revert "Apply coding style"Michael Vetter2020-07-071-45/+45
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-45/+45
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Remove prefs_free_string()Michael Vetter2020-07-021-3/+3
| | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
* Add option for legacy authenticationDmitry Podgorny2020-06-051-5/+14
| | | | | | | | New options: /connect <account> [auth default|legacy] /account <account> set auth default|legacy Fixes #1236.
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Call message_handlers_clear() upon disconnectMichael Vetter2019-06-201-0/+1
| | | | Free pubsub_event_handlers. Fix memory leaks.
* Call iq_handlers_clear() upon disconnectMichael Vetter2019-06-201-0/+1
| | | | Free id_handlers. Fix memory leaks.
* Don't clear saved account data in session_disconnect()Dmitry Podgorny2019-06-031-28/+7
| | | | | | | | | | | | | | | | | | | | If connection loss occurs, it calls session_disconnect() eventually. This function clears saved account data which is required for reconnection. Therefore, when reconnect timer expires, we get errors: 02/06/2019 04:53:42: stderr: ERR: (profanity:17115): GLib-CRITICAL **: 04:53:42.305: g_key_file_has_group: assertion 'group_name != NULL' failed 02/06/2019 04:53:43: prof: ERR: Unable to reconnect, account no longer exists: (null) To solve it, don't clear the saved data in session_disconnect(). It will be cleared properly on connection loss if reconnect timer is not configured. But won't be cleared with /disconnect command. So, after /disconnect the data will live in memory until the next /connect. Also, remove some copy-paste in connection loss path.
* Add random string at the end of the default resourcePaul Fariello2019-04-121-1/+3
| | | | | | | | When connecting for the first time or when creating a new account don't use only 'profanity' as default resource. Some server don't support having 2 connection with same resource. Using profanity as default lead to deconnections.
* Wait for discovery end to publish omemo devicelist and bundlePaul Fariello2019-04-101-1/+1
| | | | Add sv_ev_connection_features_received for that purpose
* Ensure saved_account is set before calling sv_ev_login_account_successPaul Fariello2019-04-101-1/+1
|
* device_list iq should be from barejid or nonePaul Fariello2019-04-101-12/+6
| | | | | | | Ensure we request device_list and remove non conforming handling of responses. Move initialisation of iq_handlers before call to sv_ev_login_account_success
* Fix devicelist subscription and handle pubsub eventPaul Fariello2019-04-101-1/+1
| | | | Devicelist subscription can be done directly with caps_add feature.
* Add devicelist and bundle publicationPaul Fariello2019-04-101-1/+5
|
* Add devicelist subscriptionPaul Fariello2019-04-101-0/+7
|
* Update copyright to include 2019Michael Vetter2019-01-221-1/+1
|
* Clear rooms cache on disconnectJames Booth2018-02-051-0/+2
|
* Update copyrightJames Booth2018-01-211-1/+1
|
* Update CopyrightJames Booth2017-01-281-1/+1
|
* Remove status from cl_ev_presence_sendJames Booth2017-01-151-8/+14
| | | | fixes #888
* Allow clearing account resourceJames Booth2016-11-221-7/+20
| | | | issue #880
* Handle NULL saved_statusJames Booth2016-07-271-1/+5
|
* Copy curr_status and free original in session.cJames Booth2016-07-271-1/+2
|
* Free ProfAccountJames Booth2016-07-251-0/+1
|
* Move autoaway checkJames Booth2016-07-241-0/+141
|
* Tidy headersJames Booth2016-07-241-5/+5
|
* Move event timeout to connection moduleJames Booth2016-07-241-9/+2
|
* Update GPL link in headersJames Booth2016-07-241-1/+1
|
* Add connection_set_disconnected()James Booth2016-05-111-8/+13
|
* Add connection_clear_data()James Booth2016-05-101-13/+7
|
* Remove connection_free_conn(), connection_free_ctx()James Booth2016-05-101-6/+6
|
* Add connection_shutdown()James Booth2016-05-101-4/+1
|
* Remove JABBER_STARTED, JABBER_UNDEFINED connection statesJames Booth2016-05-101-15/+4
|
* Remove _session_free_session_data from session.cJames Booth2016-05-101-38/+42
|
* Fixed compileJames Booth2016-05-081-1/+1
|
* Tidy session.cJames Booth2016-05-081-3/+4
|
* Free features on disconnectJames Booth2016-05-081-0/+1
|
* Move conneciton initialisation to _connection_handlerJames Booth2016-05-081-5/+0
|