about summary refs log tree commit diff stats
path: root/src/xmpp/stanza.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
|
* Fix merge mistakeMichael Vetter2022-10-211-1/+1
|
* Merge MAM improvements from #1724Michael Vetter2022-10-211-0/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I think this PR already solves and improves the MAM situation a lot. What's @MarcoPolo-PasTonMolo still wanted to do in this branch is: * MAM for mucs * Check if url and quotes autocompletion works fine * Check if the api still works fine * Resolve conflicts Conflicts are solved with this commit. MAM for mucs can be another feature PR. The rest we can check while being on master. And more people can help testing.
| * Fix initial MAM not displayingMarcoPolo-PasTonMolo2022-07-051-0/+1
| | | | | | | | | | | | Did this by waiting for a batch of MAM messages to arrive before prepending them to the buffer. Also limited the number of messages to fetch to 10 so that the user gets more frequent updates.
| * On new chatwin fetch mam according to guidelines.MarcoPolo-PasTonMolo2022-07-031-1/+3
| | | | | | | | | | Taken from here: https://github.com/modernxmpp/modernxmpp/commit/cd3e871e55c2cff45dffd05d6e50380b99845849
* | Add vCard supportMarouane L2022-10-181-0/+3
|/ | | | | | | | | | | | 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)
* Add `/avatar set` command to publish avatarMarcoPolo-PasTonMolo2022-05-261-0/+4
| | | | | | | | 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
|
* handle `see-other-host` XMPP stream errorSteffen Jaeckel2022-02-011-0/+2
| | | | | | Fixes #1628 Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Merge branch 'master' into xep/xep0107-user-moodMichael Vetter2021-12-061-0/+2
|\
| * Fix carbons criteriaMichael Vetter2021-11-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We came into the carbons checking code when we received `<private xmlns="urn:xmpp:carbons:2"/>`. Which actually marks a message to _not_ be a carbon. In this code we also make sure that carbons only come from us. If not we don't call the message handler code. So we should actually only check for `<sent xmlns='urn:xmpp:carbons:2'>` and `<received xmlns='urn:xmpp:carbons:2'>`. Thanks pukkamustard and Holger. Fixes https://github.com/profanity-im/profanity/issues/1614
* | xep-0107: code reviewDebXWoody2021-12-061-0/+4
|/ | | | | | | | * 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
* first step to remove libmesodeSteffen Jaeckel2021-10-271-6/+0
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Format new register code correctlyMichael Vetter2021-10-131-1/+0
|
* Merge pull request #1574 from binex-dsk/masterMichael Vetter2021-10-131-0/+2
|\ | | | | | | Add in-band account registration Fix https://github.com/profanity-im/profanity/issues/199
| * initial register command testswirl2021-08-171-0/+2
| |
* | OMEMO: Fix precondition-not-met handlingPaul Fariello2021-08-191-1/+1
| |
* | OMEMO: try device list creation and reconfigure on precondition-not-metPaul Fariello2021-08-191-0/+1
|/
* XEP-0377: Add forgotten namespaceMichael Vetter2021-07-011-0/+1
|
* Add XEP-0377: Spam ReportingMichael Vetter2021-07-011-0/+4
| | | | | | | | | | | Report and block: `/blocked add someone@domain.org report-abuse This is not nice` `/blocked add someone@domain.org report-spam This is not nice` Regular block: `/blocked add someone@domain.org` Implement https://github.com/profanity-im/profanity/issues/1434
* XEP-0157: Print contact addressesMichael Vetter2021-06-301-1/+1
|
* XEP-0157: Parse contact address stanzaMichael Vetter2021-06-291-0/+3
|
* XEP-0353: Display a notice when receiving a callMichael Vetter2021-06-091-0/+3
| | | | | | Display a notice in the console when someone tries to call us. Implement https://github.com/profanity-im/profanity/issues/1525
* Add support to register with a roomMichael Vetter2021-03-251-4/+3
| | | | | | | | | | `/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
* Add support to approve MUC voice requestsMichael Vetter2021-03-171-2/+3
| | | | | | A form will open. One can then use `/field4 on` `/form submit`. Implements https://github.com/profanity-im/profanity/issues/1507
* MUC: Add voice requestThorben Günther2021-03-121-1/+6
| | | | closes https://github.com/profanity-im/profanity/issues/1211
* Merge pull request #1501 from xenrox/change-passwordMichael Vetter2021-03-111-1/+5
|\ | | | | Add command to change password of logged in user
| * Add command to change password of logged in userThorben Günther2021-03-111-1/+5
| |
* | Update to the newest version of XEP 0363 (HTTP Upload)Maximilian Wuttke2021-03-111-1/+8
|/ | | | | | | | | | | | | Main changes: 1. Attributes instead of tags 2. Read the optional <header> tags and send them in the HTTP PUT header: * Authorization * Cookie * Expires Co-authored-by: Martin Dosch <martin@mdosch.de>
* Variadic version of `stanza_attach_publish_options`Maximilian Wuttke2021-03-091-1/+3
|
* wip: add rsm after we get the first couple of mam messagesMichael Vetter2021-01-281-1/+2
|
* Start working on MAM RSM to get more pagesMichael Vetter2021-01-281-0/+3
| | | | Regards https://github.com/profanity-im/profanity/issues/660
* Update copyrightMichael Vetter2021-01-081-1/+1
|
* Replace stanza_get_child_by_name_and_ns with ↵Michael Vetter2020-09-301-2/+0
| | | | | | | | xmpp_stanza_get_child_by_name_and_ns Replace our own stanza_get_child_by_name_and_ns() with the upstreamed xmpp_stanza_get_child_by_name_and_ns() provided by the new libstrophe/libmesode 0.10.0.
* Parse stanza-idMichael Vetter2020-07-231-0/+2
| | | | | | | | | | | | Add stable stanza IDs to ProfMessage struct. We parse this for 1:1 messages (MUC needs to be done too). <stanza-id> for live messages <result id="x"> for MAM messages Regards MAM: https://github.com/profanity-im/profanity/issues/660 Regards Stable IDs: https://github.com/profanity-im/profanity/issues/1207
* Apply coding styleMichael Vetter2020-07-071-261/+262
|
* Revert "Apply coding style"Michael Vetter2020-07-071-262/+261
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-261/+262
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* OX: Announce public key on PEPDebXWoody2020-07-061-0/+8
| | | | | | | | | | | | | | | src/pgp/gpg.c:p_ox_gpg_readkey Used to read a public key from a file. The function will return the fingerprint of the file and the base64 encoded key. src/xmpp/ox.[hc] ox_announce_public_key(const char* const filename) can be called from the /ox announce <filename> command. The key within the file will be pushed on PEP and the Metadata node will be set. Issue: #1331
* message.c: Check for message typeMichael Vetter2020-07-021-0/+1
| | | | | RFC 6121 allows only few types. So we can also remove that check in _handle_chat().
* Add HEADLINE stanza defineMichael Vetter2020-07-021-0/+1
|
* Feature request - XEP-0373: OpenPGP for XMPP (OX)DebXWoody2020-06-291-0/+4
| | | | | | | | | Basic implementation of XEP-0373: OpenPGP for XMPP. https://xmpp.org/extensions/xep-0373.html Command /ox Issue: #1331
* Preserve Gajims minimize flag in bookmarksMichael Vetter2020-05-221-0/+2
| | | | Implement https://github.com/profanity-im/profanity/issues/1326
* First MAM testMichael Vetter2020-04-111-0/+3
| | | | | | Send a request (which we can't handle yet) :-) Regards https://github.com/profanity-im/profanity/issues/660
* xep-0308: Implement `/correct` to correct the last send messageMichael Vetter2020-02-101-0/+1
| | | | | | | | So far the correction is sent. But the UI in Profanity itself is not updated. Also autocompletion for `/correct` with the last sent message is missing.
* xep-0308: Initial support for incoming LMCMichael Vetter2020-02-101-0/+1
|
* avatar: use unique id for stanza idMichael Vetter2020-02-071-1/+1
| | | | "retrieve1" should have been only for testing.
* muc: save oldest timestampMichael Vetter2020-01-301-0/+1
| | | | | | | | | | | | | | | | | | So far we saved the timestamp which also had the `from`. But we need this only to find out whether it's MUC history. For displaying we should use the oldest delay timestamp. Also in https://github.com/profanity-im/profanity/commit/61f66966ddfe8ebd8bae26dd7ff92d777004edda#diff-4926fd4577a336bd3eb240f8104a5c5bL837 a error was introduced. Before we saved the timestamp in all cases. And only if timestamp AND from was given we went into MUC history case. Normal timestamp saving was not done anymore only if it also had a from attribute. Regards https://github.com/profanity-im/profanity/issues/1254
* Update my Copyright to 2020Michael Vetter2020-01-031-1/+1
|