Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add plugin prof_get_nick_from_roster function | Dustin Lagoy | 2021-04-28 | 8 | -0/+65 |
| | |||||
* | Apply pre_chat_message_display hook to history | Dustin Lagoy | 2021-04-27 | 1 | -0/+1 |
| | |||||
* | command: Fix serversoftware examples | Michael Vetter | 2021-04-18 | 1 | -2/+2 |
| | |||||
* | Fix random string generation | Michael Vetter | 2021-04-17 | 1 | -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) | Stefan | 2021-04-17 | 7 | -0/+94 |
| | | | | | | | Add OMEMO trust mode capabilities. * ToFu / first usage * blind trust * manual | ||||
* | editor: make editor configurable via /executable | Michael Vetter | 2021-04-16 | 4 | -3/+23 |
| | | | | | | `/executable set editor /full/path/to/edit`. Regards https://github.com/profanity-im/profanity/issues/1521 | ||||
* | editor: adapt help description | Michael Vetter | 2021-04-16 | 1 | -2/+3 |
| | |||||
* | editor: Save temp files as .md | Michael Vetter | 2021-04-16 | 1 | -2/+2 |
| | | | | | Probably many people render text in their head to markdown automatically. | ||||
* | Editor: improve error messages | Michael Vetter | 2021-04-16 | 1 | -6/+6 |
| | |||||
* | editor: Use g_strdup_printf() instead of g_string_new() | Michael Vetter | 2021-04-16 | 1 | -11/+4 |
| | |||||
* | Run clang-format on new editor code | Michael Vetter | 2021-04-16 | 2 | -18/+18 |
| | |||||
* | Editor: Fix redisplay | Stefan | 2021-04-16 | 1 | -1/+4 |
| | |||||
* | Editor: Use _exit() instead of exit() | Stefan | 2021-04-16 | 1 | -1/+1 |
| | |||||
* | Editor: Using preferences compose.editor | Stefan | 2021-04-16 | 3 | -9/+25 |
| | | | | compose.editor is the path to the executable ( default /usr/bin/vim ) | ||||
* | Editor command: filename / sensible-editor | Stefan | 2021-04-16 | 1 | -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 command | Stefan | 2021-04-16 | 3 | -0/+55 |
| | | | | Goal is to launch an external editor (eg vim) to edit the text there. | ||||
* | Mention clipboard in version output | Michael Vetter | 2021-04-16 | 1 | -2/+2 |
| | |||||
* | Goodbye beautiful IDs | Michael Vetter | 2021-04-14 | 3 | -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. | ||||
* | Msg sending: don't write to chatwin nor to log if sending failed | Maximilian Wuttke | 2021-04-08 | 1 | -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 device | Maximilian Wuttke | 2021-04-08 | 2 | -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 initalisation | Maximilian Wuttke | 2021-04-08 | 2 | -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 define | Michael Vetter | 2021-03-30 | 12 | -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 Vetter | 2021-03-29 | 1 | -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(). | ||||
* | Add config.h in files were it was missing | Michael Vetter | 2021-03-26 | 42 | -0/+84 |
| | | | | Related to https://github.com/profanity-im/profanity/issues/1512 | ||||
* | Include config.h in omemo files | Michael Vetter | 2021-03-26 | 2 | -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 Vetter | 2021-03-26 | 1 | -2/+2 |
| | |||||
* | message: parse stanzaid in MUC case | Michael Vetter | 2021-03-25 | 1 | -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> | ||||
* | ox: fix memleak in ox_announce_public_key | Michael Vetter | 2021-03-25 | 1 | -1/+3 |
| | |||||
* | message: make _handle_error safer | Michael Vetter | 2021-03-25 | 1 | -2/+4 |
| | |||||
* | event: make log_database_get_previous_chat safer | Michael Vetter | 2021-03-25 | 1 | -2/+4 |
| | |||||
* | database: make log_database_get_previous_chat safer | Michael Vetter | 2021-03-25 | 1 | -0/+2 |
| | |||||
* | database: simplify _log_database_add_outgoing | Michael Vetter | 2021-03-25 | 1 | -2/+1 |
| | |||||
* | database: simplify log_database_add_incoming | Michael Vetter | 2021-03-25 | 1 | -2/+1 |
| | |||||
* | avatar: make _avatar_request_item_result_handler safer | Michael Vetter | 2021-03-25 | 1 | -0/+4 |
| | |||||
* | avatar: make _avatar_metadata_handler safer | Michael Vetter | 2021-03-25 | 1 | -11/+20 |
| | |||||
* | ox: make _ox_public_key_result safer | Michael Vetter | 2021-03-25 | 1 | -5/+15 |
| | |||||
* | ox: guard printing of fingerprint | Michael Vetter | 2021-03-25 | 1 | -1/+3 |
| | |||||
* | ox: improve error log in _ox_metadata_result | Michael Vetter | 2021-03-25 | 1 | -1/+1 |
| | |||||
* | ox: add logging prefix | Michael Vetter | 2021-03-25 | 1 | -15/+15 |
| | |||||
* | stanza: guard mallocs | Michael Vetter | 2021-03-25 | 1 | -70/+88 |
| | | | | | If this happens we have more serious problems :-) But anyways.. | ||||
* | stanza: simplify stanza_get_muc_destroy_alternative_room | Michael Vetter | 2021-03-25 | 1 | -4/+1 |
| | |||||
* | stanza: replae strcmp with g_strcmp0 | Michael Vetter | 2021-03-25 | 1 | -17/+17 |
| | | | | since its NULL safe | ||||
* | message: simplify _handle_headline | Michael Vetter | 2021-03-25 | 1 | -4/+2 |
| | |||||
* | message: make _receipt_request_handler safer | Michael Vetter | 2021-03-25 | 1 | -1/+1 |
| | |||||
* | message: make _handle_receipt_received safer | Michael Vetter | 2021-03-25 | 1 | -1/+5 |
| | |||||
* | message: make _handle_groupchat safer | Michael Vetter | 2021-03-25 | 1 | -0/+6 |
| | |||||
* | message: simplify _handle_conference | Michael Vetter | 2021-03-25 | 1 | -7/+5 |
| | |||||
* | message: make _handle_form safer | Michael Vetter | 2021-03-25 | 1 | -0/+3 |
| | |||||
* | message: make _message_handler safer | Michael Vetter | 2021-03-25 | 1 | -7/+9 |
| | |||||
* | mesage: make _handle_ox_chat safer | Michael Vetter | 2021-03-25 | 1 | -11/+27 |
| | | | | And on the way fix a memleak |