1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-15 19:38:07 -04:00
profanity/tests/unittests
IsaacM88 ecdeb750f3 Add ability to disable avatar publishing
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()".
2023-05-02 14:45:54 -06:00
..
chatlog add chatlog unittest 2022-06-28 20:46:35 +02:00
config Add sessions_alarm 2023-04-18 14:28:20 +02:00
database Update copyright year 2023-01-10 10:37:25 +01:00
log minor changes 2023-01-18 20:02:46 +01:00
omemo Use our omemo sid/fingerprint in qr code 2022-05-31 15:44:44 +02:00
otr Apply coding style 2020-07-07 14:18:57 +02:00
pgp Split ox functions from gpg.c to ox.c 2022-06-29 09:17:15 +02:00
tools Fix duplicate download IDs. 2023-03-09 15:02:26 -07:00
ui Fix empty window after reconnect 2023-04-02 21:53:12 +03:00
xmpp Add ability to disable avatar publishing 2023-05-02 14:45:54 -06:00
helpers.c use g_mkdir_with_parents() instead of home-baked solution 2022-03-14 13:17:46 +01:00
helpers.h Fix: files missing final ending newline 2021-08-26 00:28:49 +00:00
test_autocomplete.c Apply coding style 2020-07-07 14:18:57 +02:00
test_autocomplete.h Apply coding style 2020-07-07 14:18:57 +02:00
test_callbacks.c auto-format 2022-02-01 15:01:28 +01:00
test_callbacks.h Apply coding style 2020-07-07 14:18:57 +02:00
test_chat_session.c Apply coding style 2020-07-07 14:18:57 +02:00
test_chat_session.h Fix: files missing final ending newline 2021-08-26 00:28:49 +00:00
test_cmd_account.c Add sessions_alarm 2023-04-18 14:28:20 +02:00
test_cmd_account.h Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_alias.c Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_alias.h Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_bookmark.c Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_bookmark.h Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_connect.c Add sessions_alarm 2023-04-18 14:28:20 +02:00
test_cmd_connect.h Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_disconnect.c Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_disconnect.h Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_join.c Add sessions_alarm 2023-04-18 14:28:20 +02:00
test_cmd_join.h Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_otr.c Add sessions_alarm 2023-04-18 14:28:20 +02:00
test_cmd_otr.h Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_pgp.c Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_pgp.h Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_presence.c Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_presence.h Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_rooms.c Add sessions_alarm 2023-04-18 14:28:20 +02:00
test_cmd_rooms.h Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_roster.c Add nickname support for /roster remove 2023-04-13 16:41:21 +02:00
test_cmd_roster.h Add nickname support for /roster remove 2023-04-13 16:41:21 +02:00
test_cmd_sub.c Apply coding style 2020-07-07 14:18:57 +02:00
test_cmd_sub.h Apply coding style 2020-07-07 14:18:57 +02:00
test_common.c add test-case for #1761 2023-03-11 15:05:03 +01:00
test_common.h add test-case for #1761 2023-03-11 15:05:03 +01:00
test_contact.c Apply coding style 2020-07-07 14:18:57 +02:00
test_contact.h Apply coding style 2020-07-07 14:18:57 +02:00
test_form.c Apply coding style 2020-07-07 14:18:57 +02:00
test_form.h Apply coding style 2020-07-07 14:18:57 +02:00
test_jid.c Apply coding style 2020-07-07 14:18:57 +02:00
test_jid.h Apply coding style 2020-07-07 14:18:57 +02:00
test_keyhandlers.c Fix: files missing final ending newline 2021-08-26 00:28:49 +00:00
test_keyhandlers.h Fix: files missing final ending newline 2021-08-26 00:28:49 +00:00
test_muc.c Apply coding style 2020-07-07 14:18:57 +02:00
test_muc.h Apply coding style 2020-07-07 14:18:57 +02:00
test_parser.c Fix typos and update codespell configuration 2023-04-03 13:25:25 +01:00
test_parser.h Apply coding style 2020-07-07 14:18:57 +02:00
test_plugins_disco.c Apply coding style 2020-07-07 14:18:57 +02:00
test_plugins_disco.h Apply coding style 2020-07-07 14:18:57 +02:00
test_preferences.c Fix preferences tests 2022-04-08 10:14:29 +02:00
test_preferences.h Apply coding style 2020-07-07 14:18:57 +02:00
test_roster_list.c Add unit tests for roster_get_display_name 2021-06-30 18:58:07 -04:00
test_roster_list.h Add unit tests for roster_get_display_name 2021-06-30 18:58:07 -04:00
test_server_events.c Apply coding style 2020-07-07 14:18:57 +02:00
test_server_events.h Apply coding style 2020-07-07 14:18:57 +02:00
unittests.c Add nickname support for /roster remove 2023-04-13 16:41:21 +02:00