about summary refs log tree commit diff stats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix merge mistake in databaseMichael Vetter2022-10-211-1/+1
| | | | | When doing 3bdc14dbcf1114fa1ea68cd6f455eecf90a9ac5e I forgot an `,` before encryption
* Fix GSList handling in new MAM codePaul Fertser2022-10-211-13/+8
| | | | | This patch was provided by @paulfertser and applied by @jubalh. Thanks a lot Paul!
* Fix merge mistakeMichael Vetter2022-10-211-1/+1
|
* Merge MAM improvements from #1724Michael Vetter2022-10-2113-63/+494
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * Don't notify on MAM messagesMarcoPolo-PasTonMolo2022-08-201-7/+10
| |
| * Handle late deliveryMarcoPolo-PasTonMolo2022-08-205-27/+109
| |
| * Apply corrections when getting messages from dbMarcoPolo-PasTonMolo2022-08-121-1/+1
| |
| * Handle MAM when chatwin gets created from incoming messageMarcoPolo-PasTonMolo2022-07-102-1/+10
| |
| * Fix duplicate sent messages in dbMarcoPolo-PasTonMolo2022-07-101-2/+3
| |
| * Have ability to scroll through history even without MAMMarcoPolo-PasTonMolo2022-07-104-10/+13
| |
| * Handle scrolling down when buffer fills upMarcoPolo-PasTonMolo2022-07-105-15/+37
| |
| * CleanupMarcoPolo-PasTonMolo2022-07-054-13/+5
| |
| * Add loading history message on initial MAM requestMarcoPolo-PasTonMolo2022-07-055-3/+20
| | | | | | | | | | | | This prevents scrolling to top and initiating another MAM request while still fetching the initial one. Also free timestamp object in database.c
| * Fix initial MAM not displayingMarcoPolo-PasTonMolo2022-07-058-56/+69
| | | | | | | | | | | | 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.
| * Add 'Loading messages' message when scrolling upMarcoPolo-PasTonMolo2022-07-044-5/+24
| |
| * Fech data from mam when all history gets displayedMarcoPolo-PasTonMolo2022-07-033-1/+52
| | | | | | | | | | | | Fetch from mam without displaying when all mam messages get received display new messages from db. Unstable, initial mam doesn't get displayed unless we start scrolling.
| * Get messages from history when scrolling up.MarcoPolo-PasTonMolo2022-07-039-9/+106
| |
| * On new chatwin fetch mam according to guidelines.MarcoPolo-PasTonMolo2022-07-035-39/+161
| | | | | | | | | | Taken from here: https://github.com/modernxmpp/modernxmpp/commit/cd3e871e55c2cff45dffd05d6e50380b99845849
* | Add vCard supportMarouane L2022-10-1821-7/+3595
| | | | | | | | | | | | | | | | | | | | | | | | 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)
* | Fix autocompletion for lastactivityStefan Kropp2022-10-171-5/+13
| | | | | | | | | | | | | | | | | | | | `/lastactivity` used autocompletion for /status instead. There was no get/set autocompletion thus user had to write `/lastactivity get` to get the proper results. Original fix by Stefan at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021028 Proper commit message and adapted patch by jubalh. Co-authored-by: jubalh@iodoru.org
* | Improve /msg and /win autocompletionMichael Vetter2022-10-171-1/+15
| | | | | | | | Let /win and /msg both autocomplete roster nickname and actual barejid
* | Merge pull request #1760 from techmetx11/fix/1759-asyncMichael Vetter2022-10-126-35/+16
|\ \ | | | | | | Replace `call_external`'s implementation with an async one
| * | Spawn external programs asynchronouslyMarouane L2022-10-126-35/+16
| | | | | | | | | | | | | | | | | | | | | | | | Drawback is that we can't check the exitcode anymore. But we were unsure why/when we need this, see: https://github.com/profanity-im/profanity/pull/1760/files#r980868708 Fixes https://github.com/profanity-im/profanity/issues/1759
* | | Fix first start detectionMichael Vetter2022-10-111-3/+3
| | | | | | | | | | | | | | | | | | Only display help message on first start. This is a fixup for: https://github.com/profanity-im/profanity/commit/27a5c9d287e856bd774988b4066667db54b65de7
* | | Format Maxis commit properlyMichael Vetter2022-09-291-1/+1
| | |
* | | Use G_GSIZE_FORMAT instead of "%lu" for portabilityMaxi Wuttke2022-09-291-1/+1
|/ / | | | | | | | | | | In the function stanza_create_avatar_metadata_publish_iq, use the format string `"%"G_GSIZE_FORMAT` instead of "%lu", for an argument of type gsize.
* | Merge pull request #1756 from sgn/python-3.11Michael Vetter2022-09-251-0/+8
|\ \ | | | | | | plugin: python: fix build for Python 3.11
| * | plugin: python: fix build for Python 3.11Đoàn Trần Công Danh2022-09-241-0/+8
| | | | | | | | | | | | | | | | | | | | | From Python 3.11, PyFrameObject has been changed into opaque struct. We need to access those fields via API. Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
* | | fix: print when no plugins installedViachaslau Khalikin2022-09-201-12/+15
| | | | | | | | | | | | Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* | | add: autocompletion plugins argumentsViachaslau Khalikin2022-09-201-0/+6
| | | | | | | | | | | | | | | | | | support for "update" and "uninstall" Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* | | fix: filtering of the available global pluginsViachaslau Khalikin2022-09-201-2/+4
| | | | | | | | | | | | | | | | | | | | | For command /plugins : Don't print files that do not correspond to the plugins design Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* | | minor: using cons_bad_cmd_usage() instead of the manual handlingViachaslau Khalikin2022-09-191-3/+3
| | | | | | | | | | | | Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* | | Fix typo which catched by codespellViachaslau Khalikin2022-09-191-1/+1
| | |
* | | Print unloaded plugins which already installedViachaslau Khalikin2022-09-192-3/+14
| | | | | | | | | | | | Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* | | Fix handle cmd_plugins_uninstall without argsViachaslau Khalikin2022-09-191-1/+2
|/ / | | | | | | Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
* | less strdup()+free()Steffen Jaeckel2022-09-071-6/+3
| | | | | | | | | | | | Improvement of f8ff93234eb118de2e69d0c4667a6cbbe90e8f8c Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | tell the user to which file we're loggingSteffen Jaeckel2022-09-071-0/+5
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | Tell user where the downloaded file is storedSteffen Jaeckel2022-09-071-2/+2
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | support for formatting in avatar executablenandesu-utils2022-09-062-15/+25
| | | | | | | | | | | | in before it just used the input command line as it was but this fixes this by adding formatting using `format_call_external_argv` which is already used in `url open` executable.
* | refactored call_external codenandesu-utils2022-08-271-17/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unluckily here the code neglected the fact that glib will set an error to a location that was pointed by the error pointer if it is not null. but it was of an undefined value hence profanity crashed. now it is null as it must be. also spawn error is returned when glib could not spawn the task for some reason like the executable file does not exist but if the exit status was non-zero it neglected the exit error and tried to output a spawn error instead. now we check whether the process that we instantiated has exited successfully also now code uses `g_spawn_check_wait_status` which `g_spawn_check_exit_status` has been aliased to.
* | fixup 11f52ad5474c7adb7f11df5b0c318597e4150312Steffen Jaeckel2022-08-081-3/+6
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | integrate XEP-0198 Stream-ManagementSteffen Jaeckel2022-08-081-0/+25
| | | | | | | | | | | | | | | | | | * save SM state and send-queue entries on disconnect * restore SM state and send-queue entries on reconnect fixes #698 Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | common: dont use GError twiceMichael Vetter2022-08-021-7/+15
| | | | | | | | | | | | We need to use a new one or call `g_clear_error()`. Fix segfault in https://github.com/profanity-im/profanity/issues/1738
* | Check for error before trying to append itMichael Vetter2022-08-021-1/+1
| | | | | | | | Related to https://github.com/profanity-im/profanity/issues/1738
* | Fix /autoaway command logicNetboy32022-07-281-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | Two issues were fixed in the parser logic: * A call to cons_bad_cmd_usage() was placed at the end of the "time" parser section that blocked reachability to both "message" and "check" parser sections. This caused "/autoaway message ..." and "/autoaway check ..." to always fail with "Invalid usage". This issue was introduced in commit 3c1e4ba. * "/autoaway message xa" with no message argument returns message set to (null). This should be fixed the same way as "/autoaway message away" was fixed in commit 3c1e4ba.
* | Display a help message upon first start of ProfanityMichael Vetter2022-07-052-1/+24
| | | | | | | | Explaining how to register/connect/set up an account.
* | Exit *_incoming_msg functions when plain message is emptyMichael Vetter2022-07-043-0/+17
| | | | | | | | Fix https://github.com/profanity-im/profanity/issues/1733
* | ox: handle empty message->plainMichael Vetter2022-07-041-0/+8
| | | | | | | | | | | | In case we dont have plain but have body, copy this (like in _sv_ev_incoming_pgp). In case we have neither, return.
* | Let slashguard ignore quoted messagesMichael Vetter2022-07-041-1/+2
| | | | | | | | | | | | This let's us whole `/me` messages and other messages starting with `>`. Fix https://github.com/profanity-im/profanity/issues/1732
* | Merge pull request #1731 from profanity-im/retrieve-enc-type-from-dbMichael Vetter2022-06-291-3/+21
|\ \ | | | | | | Retrieve enc type from db