about summary refs log tree commit diff stats
path: root/src/xmpp/avatar.h
Commit message (Collapse)AuthorAgeFilesLines
* Add ability to disable avatar publishingIsaacM882023-05-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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()".
* Update copyright yearMichael Vetter2023-01-101-1/+1
|
* Add checks for whether gdk-pixbuf exists before using avatar setMarcoPolo-PasTonMolo2022-05-261-0/+2
|
* Add `/avatar set` command to publish avatarMarcoPolo-PasTonMolo2022-05-261-0/+1
| | | | | | | | 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
* Update copyright yearMichael Vetter2022-05-091-1/+1
|
* Update copyrightMichael Vetter2021-01-081-1/+1
|
* xep-0084/avatar: add option to open avatar directlyMichael Vetter2020-03-101-1/+1
| | | | | | | | | | | Change: `/avatar me@somewhere.org` -> `/avatar get me@somewhere.org` New: `/avatar cmd feh` `/avatar open me@somewhere.org` Implement https://github.com/profanity-im/profanity/issues/1281
* Update my Copyright to 2020Michael Vetter2020-01-031-1/+1
|
* xep-0084: add test stub fileMichael Vetter2019-12-181-1/+1
|
* Add header file guard to avatar.hMichael Vetter2019-12-181-0/+5
|
* Fix headerMichael Vetter2019-12-181-1/+1
|
* xep-0084: Look for specific user and print IDMichael Vetter2019-12-181-0/+1
| | | | Add a `/avatar` command.
* Start implementing XEP-0084Michael Vetter2019-12-181-0/+38
So far we just subscribe and get the IDs.