about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Fix spelling of "persistent(ly)"Raf Czlonka2021-05-231-3/+3
|/ /
* | message: correct type checkingMichael Vetter2021-05-141-1/+1
| | | | | | | | | | Found by DebXWoody. Led to always be true (which still made it work in most cases).
* | sponsors: Add Matteo BiniMichael Vetter2021-05-121-0/+2
| |
* | Merge pull request #1534 from profanity-im/feat/1531-directmessageMichael Vetter2021-05-121-35/+55
|\ \ | | | | | | Use direct messages instead of MUC-PMs for non-anonymous MUCs
| * | Print message about new direct messageMichael Vetter2021-05-121-0/+4
| | | | | | | | | | | | So users don't get surprised if they don't know the barejid of the nick.
| * | Use direct messages instead of MUC-PMs for non-anon MUCsMichael Vetter2021-05-121-35/+51
|/ / | | | | | | | | | | | | | | | | | | | | | | | | In https://github.com/profanity-im/profanity/issues/1070 we have: `OMEMO encryption for MUC PM (OMEMO MUCs are not anonymous, so we should start a regular 1:1 in this case instead of MUC PM. A discussion started to make this a general feature #1531)` In https://github.com/profanity-im/profanity/issues/1531 we have the general issue to start regular 1:1 messages instead of MUC PMs if the room is non-anonymous. This is like suggested in https://docs.modernxmpp.org/client/groupchat/.
* | Merge pull request #1532 from profanity-im/feat/1516-intypeMichael Vetter2021-05-117-14/+64
|\ \ | | | | | | Have separate settings for intype (console/titlebar)
| * | Have intype on by defaultMichael Vetter2021-05-081-0/+2
| | |
| * | Have separate settings for intypeMichael Vetter2021-05-087-14/+62
|/ / | | | | | | | | | | | | | | | | | | Old: `/intype on|of` Typing information is printed in console and titlebar. New: `/intype titlebar|console on|off` Typing information can be configured in more detail. Regards https://github.com/profanity-im/profanity/issues/1516
* | Reduce scope of dir variableMichael Vetter2021-05-061-1/+2
| |
* | command: Simplify return in autocompletionMichael Vetter2021-05-061-65/+12
|/
* Merge pull request #1528 from dustinlagoy/pre-chat-message-display-on-historyMichael Vetter2021-04-281-0/+1
|\ | | | | Apply pre_chat_message_display hook to history
| * Apply pre_chat_message_display hook to historyDustin Lagoy2021-04-271-0/+1
|/
* command: Fix serversoftware examplesMichael Vetter2021-04-181-2/+2
|
* Fix random string generationMichael Vetter2021-04-171-1/+2
| | | | | | | | | | | | | Our variable `alphabet` contains 62 alphanumeric symbols + '\0'. When we use sizeof(alphabet) we will get 63 due to that. But we want to choose a random numbers from the 62 alphanumeric letters only. This mistake caused us to have strings with a max length of `length` instead of the exact length. When doing https://github.com/profanity-im/profanity/issues/1520 this caused our algo for muc reflection to not catch since we expect the random ID to be exactly 15 symbols long in `message_is_sent_by_us()`.
* OMEMO - trust mode (#1506)Stefan2021-04-177-0/+94
| | | | | | | Add OMEMO trust mode capabilities. * ToFu / first usage * blind trust * manual
* sponsors: mention new sponsor James PondMichael Vetter2021-04-161-0/+2
|
* readme: remove extra mention regarding mlMichael Vetter2021-04-161-2/+0
| | | | Already mentioned in SPONSORS.md.
* editor: make editor configurable via /executableMichael Vetter2021-04-164-3/+23
| | | | | | `/executable set editor /full/path/to/edit`. Regards https://github.com/profanity-im/profanity/issues/1521
* editor: adapt help descriptionMichael Vetter2021-04-161-2/+3
|
* editor: Save temp files as .mdMichael Vetter2021-04-161-2/+2
| | | | | Probably many people render text in their head to markdown automatically.
* Merge pull request #1485 from StefanKropp/feature/editor-commandMichael Vetter2021-04-165-3/+111
|\ | | | | | | | | Add basic functionality to launch external editor Regards https://github.com/profanity-im/profanity/issues/1521
| * Editor: improve error messagesMichael Vetter2021-04-161-6/+6
| |
| * editor: Use g_strdup_printf() instead of g_string_new()Michael Vetter2021-04-161-11/+4
| |
| * Run clang-format on new editor codeMichael Vetter2021-04-162-18/+18
| |
| * Editor: Fix redisplayStefan2021-04-161-1/+4
| |
| * Editor: Use _exit() instead of exit()Stefan2021-04-161-1/+1
| |
| * Editor: Using preferences compose.editorStefan2021-04-163-9/+25
| | | | | | | | compose.editor is the path to the executable ( default /usr/bin/vim )
| * Editor command: filename / sensible-editorStefan2021-04-161-9/+50
| | | | | | | | | | | | | | | | * Generating a unique file name in tmp_dir folder * Changed exec of vim to exec of sensible-editor * Test file exists and create file with "private" rights * Send a preview of the message in the window * Delete temp file
| * Add new editor commandStefan2021-04-163-0/+55
|/ | | | Goal is to launch an external editor (eg vim) to edit the text there.
* Mention clipboard in version outputMichael Vetter2021-04-161-2/+2
|
* Goodbye beautiful IDsMichael Vetter2021-04-143-30/+18
| | | | | | | | | | | | | | | It was a great ride! IDs look instead of `TE5BTDc2ZTc3YTMwZGU3MDgzMzllOTliNGExNjVmMjZkMTY1ZmUyZGEyNTUxMjVmODBkMmQzOGMxYWI2ZjAxNzdiM2Q=` more like `7HcnNSoO1MVvb0p9a9e293152922853e910b8b1a65bb26e225a0568` now. Regards https://github.com/profanity-im/profanity/issues/1520 We still has our identifier into it to filter MUC reflected messages. profident maybe should be changed to be longer or be generated upon each start.
* Merge pull request #1515 from mwuttke97/fix_omemo_empty_devlistMichael Vetter2021-04-084-30/+57
|\ | | | | [OMEMO] Fix sending messages
| * Msg sending: don't write to chatwin nor to log if sending failedMaximilian Wuttke2021-04-081-12/+18
| | | | | | | | | | | | Currently, only `chat_log_omemo_msg_out` can fail (i.e. return `NULL` instead of a stanza id). In this case, the message is neither printed to the chat window nor added to the log (since it wasn't sent).
| * OMEMO: Fail if message keys couldn't be encrypted for any recipient deviceMaximilian Wuttke2021-04-082-8/+27
| | | | | | | | | | | | | | | | | | If the message (key) can't be encrypted for any device, sending the message is refused and an informative error message is presented to the user. Also, don't encrypt for the same device, since the OMEMO XEP disallows this.
| * OMEMO: Remove duplicate session initalisationMaximilian Wuttke2021-04-082-18/+20
|/ | | | | | The function `omemo_start_session` was effectively called twice in the `/msg` command: Once in `chatwin_new` and afterwards in `cmd_msg`. I've removed the second call.
* Get rid of asprintf and _GNU_SOURCE defineMichael Vetter2021-03-3012-104/+97
| | | | | | | _GNU_SOURCE was even in some files where it was not needed at all (http*). Let's replace asprintf() with g_strdup_printf().
* Fix segfault in cmd_autoaway()Michael Vetter2021-03-291-9/+12
| | | | | | | | | Two mistakes were here: * `/autoaway time away` without a time argument segfaulted * `/autoaway message away` without a mesage set to (null). We have `/autoaway message off to set it off. Also use g_strcmp0() instead of strcmp().
* Merge pull request #1514 from profanity-im/fix/1512-rpiMichael Vetter2021-03-2644-0/+88
|\ | | | | Include config.h in omemo files
| * Add config.h in files were it was missingMichael Vetter2021-03-2642-0/+84
| | | | | | | | Related to https://github.com/profanity-im/profanity/issues/1512
| * Include config.h in omemo filesMichael Vetter2021-03-262-0/+4
|/ | | | | | | | | So that off_t is defined in all files (so far http_upload.c and http_download.c too) the same way. Fix https://github.com/profanity-im/profanity/issues/1512 Thanks @pasis for finding the solution!
* iq: use define for 'cancel'Michael Vetter2021-03-261-2/+2
|
* message: parse stanzaid in MUC caseMichael Vetter2021-03-251-1/+9
| | | | | | | | | | | | | | | | | | There was a todo for this in message.c which got forgotten. This was most likely also the reason why there were NULL entries for this in the DB which DebXWoody mentioned in the MUC. Thus comparison was with NULL and no new entries were added to the database. Edit: After checking pull requests I see Stefans draft PR: https://github.com/profanity-im/profanity/pull/1505 So let's add him as co-author. Co-authored-by: Stefan Kropp <stefan@debxwoody.de>
* Merge pull request #1513 from profanity-im/fix-possible-segfault1Michael Vetter2021-03-257-204/+298
|\ | | | | Fix potential problems caused by unexpected stanzas
| * ox: fix memleak in ox_announce_public_keyMichael Vetter2021-03-251-1/+3
| |
| * message: make _handle_error saferMichael Vetter2021-03-251-2/+4
| |
| * event: make log_database_get_previous_chat saferMichael Vetter2021-03-251-2/+4
| |
| * database: make log_database_get_previous_chat saferMichael Vetter2021-03-251-0/+2
| |
| * database: simplify _log_database_add_outgoingMichael Vetter2021-03-251-2/+1
| |
| * database: simplify log_database_add_incomingMichael Vetter2021-03-251-2/+1
| |