about summary refs log tree commit diff stats
path: root/tests/unittests/xmpp
Commit message (Collapse)AuthorAgeFilesLines
* fix `/reconnect now`Steffen Jaeckel2023-05-101-0/+4
| | | | | | | This fixes #1846 Issue introduced by a0aa26b6fa65ba625f4a6d3495a345c7120ff16d Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Add ability to disable avatar publishingIsaacM882023-05-021-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "/avatar disable" to comply with point "3.5 Publisher Disables Avatar Publishing" in XEP-0084. src/command/cmd_defs.c:2416 Add "disable" argument. Reword the "/avatar" command description so it flows better. src/command/cmd_ac.c:1101 Add "disable" to the "/avatar" autocomplete dictionary. src/command/cmd_funcs.c:9277 Split "/avatar" commands into two groups with an if statement; those with a parameter and those without. "cons_bad_cmd_usage()" is in both groups, which is messy. "disable" has similar logic to "set", but it includes a failure message. src/xmpp/avatar.c:152 "avatar_publishing_disable()" uses the same logic to publish metadata as in "avatar_set()". src/xmpp/avatar.c:238 Add a message to inform users when they do not receive an avatar after using "/avatar get" and "/avatar open". In case of a failure, the user will be subscribed to future avatar updates as long as they continue to use their current instance of profanity. Adding "caps_remove_feature()" after "cons_show()" will unsubscribe the user from avatar updates and prevent the user from downloading an avatar unexpectedly hours later without issuing an "/avatar" command. src/xmpp/stanza.c:2698 The new "disable" function follows the same logic as "stanza_create_avatar_metadata_publish_iq()".
* add `now` option to `/reconnect` commandSteffen Jaeckel2023-01-181-0/+4
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Add MAM test stubsMichael Vetter2022-10-211-0/+5
|
* Add vCard supportMarouane L2022-10-181-0/+79
| | | | | | | | | | | | Only nicknames, photos, birthdays, addresses, telephone numbers, emails, JIDs, titles, roles, notes, and URLs are supported Due to the synopsis array not having enough space, `/vcard photo open-self` and `/vcard photo save-self` are not documented properly in the synopsis section of the `/vcard` command, but they are documented in the arguments section Fixed memory leak in vcard autocomplete (thanks to debXwoody)
* Final touches for `/avatar set`Michael Vetter2022-05-271-2/+0
|
* Add checks for whether gdk-pixbuf exists before using avatar setMarcoPolo-PasTonMolo2022-05-261-1/+4
|
* Add `/avatar set` command to publish avatarMarcoPolo-PasTonMolo2022-05-261-0/+5
| | | | | | | | Use `/avatar set <path>` where <path> is an image file to upload a new avatar for the current user. When the avatar is too big it gets scaled down. Scaling code copied from dino. Fixes https://github.com/profanity-im/profanity/issues/1687
* tests: add publish_user_mood stubMichael Vetter2021-12-061-0/+5
|
* Format new register code correctlyMichael Vetter2021-10-131-1/+1
|
* registration: add test stubMichael Vetter2021-10-131-0/+12
|
* Adjust test stub of blocking commandMichael Vetter2021-07-011-1/+1
|
* Add command to show single bookmark detailsMichael Vetter2021-06-091-0/+6
| | | | | | | `/bookmark list` lists all bookmarks with its details. `/bookmark list <jid>` shows the details of a single bookmark. Implement https://github.com/profanity-im/profanity/issues/1558
* Add support to register with a roomMichael Vetter2021-03-251-0/+10
| | | | | | | | | | `/affiliation register` can now be used to register a nickname with a MUC. Tested with a server without forms. Couldn't find a server which supports forms yet. Implements https://github.com/profanity-im/profanity/issues/1210
* MUC: Add voice requestThorben Günther2021-03-121-0/+5
| | | | closes https://github.com/profanity-im/profanity/issues/1211
* Add command to change password of logged in userThorben Günther2021-03-111-0/+10
|
* OX: XEP-0373: OpenPGP for XMPP - Version 0.5.0 (2020-06-19)DebXWoody2020-07-101-0/+10
| | | | | | | | | | | Discovering Public Keys via PEP * 4.3 Discovering Public Keys of a User * 4.4 Requesting Public Keys * Import Public Keys into GnuPG's local keyring. Issue: #1331
* Apply coding styleMichael Vetter2020-07-074-118/+328
|
* Revert "Apply coding style"Michael Vetter2020-07-074-332/+122
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-074-122/+332
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Tests: Add ox_announce_public_key stubMichael Vetter2020-07-061-0/+9
|
* Add OX test stubsMichael Vetter2020-06-291-0/+5
|
* Add option for legacy authenticationDmitry Podgorny2020-06-051-1/+2
| | | | | | | | New options: /connect <account> [auth default|legacy] /account <account> set auth default|legacy Fixes #1236.
* Fix clears_chat_sessions unittestMichael Vetter2020-05-281-0/+5
|
* Update bookmark test stubMichael Vetter2020-05-221-2/+2
|
* Fix message_send_private unittest stubMichael Vetter2020-04-061-1/+6
|
* Parse mentions and triggers in muc history if display is 'regular'Michael Vetter2020-02-201-1/+1
| | | | Fix https://github.com/profanity-im/profanity/issues/1261
* xep-0308: adapt unit test stubsMichael Vetter2020-02-141-5/+4
|
* Add context to autocomplete_with_func and use it for omemo trust commandPaul Fariello2020-01-311-3/+3
| | | | Fix #1068
* Use OMEMO for offline MUC members (#1242)Paul Fariello2020-01-201-1/+1
|
* xep-0084: add test stub fileMichael Vetter2019-12-181-0/+7
|
* Don't override ProfMessage Id with origin-idMichael Vetter2019-10-311-1/+1
| | | | | | | | | | Profanity sends the same value for both. Other clients might not. Safe both since we could need them later. Once we implement Last Message Correction we will need the regular id. If we override it with origin-id and another client chooses to not use the same value for id and origin-id then we can't interpret the id sent with the LMC request correctly.
* Adjust stub for connection_get_profanity_identifierMichael Vetter2019-10-221-1/+1
|
* Move ProfMessage and message_is_sent_by_us to xmppMichael Vetter2019-10-191-1/+0
| | | | Not meant for internal usage only.
* Add message_is_sent_by_us stubMichael Vetter2019-10-181-0/+5
|
* Remove accidentally added fileMichael Vetter2019-10-181-7/+0
|
* Add connection_get_profanity_identifier stubMichael Vetter2019-10-182-0/+11
| | | | And move defintion to xmpp.h
* Add missing stub filePaul Fariello2019-07-171-0/+7
|
* Cancel autoping timer on disconnect or connection lossDmitry Podgorny2019-06-031-0/+1
| | | | | | | | | If Profanity is disconnected in any way before ping response is received, the autoping timer will expire after the next connection is established. As result, user will be disconnected immediately. Cancel autoping timer in ev_disconnect_cleanup(), so it is done for all kind of disconnections.
* Use mock_type() for casting mock()Frank Zschockelt2019-05-081-5/+5
|
* Use mock_ptr_type() to silence compiler warningsFrank Zschockelt2019-05-081-4/+4
| | | | | | Unit tests on 32-bit architectures were failing due to "cast to pointer from integer of different size" warnings. mock_ptr_type silences those by first casting to uintptr_t.
* Rework MUC reflected message filteringPaul Fariello2019-04-101-1/+4
| | | | | | | | | Reflected messages can't be filtered by nick only otherwise you might ignore messages comming from you on another devices. Consequently we maintain a list of sent messages id in mucwin. To be sure the id will be correctly reflected we use the origin-id stanza.
* Remove unused stup session_get_domainPaul Fariello2018-09-051-5/+0
|
* Add connection_get_domain stub for testsPaul Fariello2018-09-051-0/+5
|
* Add conf win callbackPaul Fariello2018-09-051-2/+2
|
* Add command subcommands: list and execPaul Fariello2018-09-051-0/+2
| | | | Also handle list result
* Add /rooms cacheJames Booth2018-02-051-0/+1
|
* Fix tests, move glob creationJames Booth2018-01-271-1/+2
|
* Allow previous autocompletion with shift tabJames Booth2017-04-011-4/+4
|
* Remove status from cl_ev_presence_sendJames Booth2017-01-151-2/+3
| | | | fixes #888