about summary refs log tree commit diff stats
path: root/src/ui
Commit message (Collapse)AuthorAgeFilesLines
...
| * console.c: Use prefs_free_string()Michael Vetter2020-07-011-1/+1
| | | | | | | | | | f9961677aaa8d2713a80127f95a3770b33af4cef replaces prefs_free_string() with g_free(). Both is correct but lets still use this.
| * Display default value for /url associated commandsPierre Mazière2020-06-251-5/+9
| | | | | | | | | | | | | | | | | | | | The display of commands associated with specific file types and protocols will need to be implemented later, but this requires to use private data of the GKeyFile structure, which can be a maintainability issue on the long term. Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
| * Add aesgcm to urls grabberPierre Mazière2020-06-251-1/+1
| | | | | | | | Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
* | Initialize is_ox in win_create_chat()Stefan Kropp2020-07-011-0/+1
| | | | | | | | Fixes an issue where messages are displayed as OX when they are not.
* | Feature request - XEP-0373: OpenPGP for XMPP (OX)DebXWoody2020-06-295-0/+25
|/ | | | | | | | | Basic implementation of XEP-0373: OpenPGP for XMPP. https://xmpp.org/extensions/xep-0373.html Command /ox Issue: #1331
* Fix gcc warnings for cygwinDmitry Podgorny2020-06-241-3/+4
| | | | | | | | | | | | | strncpy(3) is not so safe function and can lead to mistakes. For example, strncpy(dest, "Profanity", 10); is redundant and leads to problems when someone changes the source string. Different example is when 3rd argument equals to length of the destination buffer. strncpy(3) doesn't terminate string with '\0' when it truncates. Therefore, the destination string becomes corrupted. Zeroize storage for 'nid', so the last byte remains '\0' in case of truncate.
* Define POSIX macro to have strdupMichael Vetter2020-06-122-4/+6
| | | | | | | | | | | | | | https://github.com/profanity-im/profanity/commit/98c38dc6d6d29333c63f80327774f094610d8602 sets C99 as standard. strdup() is not part of C99. For now set `-D_POSIX_C_SOURCE=200809L` macro to have strdup() in C99. Using `gnu99` instead would be another option. We should take more care to use glib functions whenever possible. Regards https://github.com/profanity-im/profanity/issues/1357
* Add option for legacy authenticationDmitry Podgorny2020-06-051-0/+3
| | | | | | | | New options: /connect <account> [auth default|legacy] /account <account> set auth default|legacy Fixes #1236.
* urlopen: get last URL firstMichael Vetter2020-05-291-2/+2
| | | | Fix https://github.com/profanity-im/profanity/issues/1348
* Fix titlebar write positionMichael Vetter2020-05-271-4/+35
| | | | | | | | Mistake introduced in 86f0e0ea7033a27a83a5c24091ae1fd5b579296d The functions later on dont set an explitic position when writing their strings. Fix https://github.com/profanity-im/profanity/issues/1346
* Handle listing ignored bookmarks when none are ignoredMichael Vetter2020-05-251-0/+6
|
* Add and use connection_get_barejid()Michael Vetter2020-05-251-3/+3
| | | | Instead of connection_get_fulljid() and then creating a Jid from it.
* List ignored bookmarksMichael Vetter2020-05-242-0/+16
| | | | | | `/bookmarl ignore` lists the ignored bookmarks. Regards https://github.com/profanity-im/profanity/issues/1115
* Fix invalid read in titlebarMichael Vetter2020-05-241-1/+2
|
* Dont show resource in titlebar if it is too longMichael Vetter2020-05-221-9/+20
| | | | Fix https://github.com/profanity-im/profanity/issues/715
* Display bookmark nameMichael Vetter2020-05-221-1/+5
| | | | | | Have field in struct and display the name in `/bookmark list`. Regards https://github.com/profanity-im/profanity/issues/697
* Make option to allow hiding windows with no messages in statusbarMichael Vetter2020-05-212-11/+33
| | | | | | | `statusbar.show.read` can be set to false in the config. `/statusbar show|hide read`. Implement https://github.com/profanity-im/profanity/issues/1285
* Make 'scrolled' themeableMichael Vetter2020-05-212-0/+5
|
* Display when scrolled upMichael Vetter2020-05-211-0/+21
| | | | | | Display [SCROLLED] in titlebar if a chat/muc/private win is scrolled up. Implement https://github.com/profanity-im/profanity/issues/1289
* Add /executable commandMichael Vetter2020-05-202-6/+8
| | | | | This is used to set the openers for various commands. So far for /avatar and /urlopen.
* Only save max 20 urlsMichael Vetter2020-05-201-0/+2
|
* Build URL ac upon printing of message in windowMichael Vetter2020-05-208-36/+50
|
* Look for URLs via regexMichael Vetter2020-05-202-6/+24
|
* Start urlopen featureMichael Vetter2020-05-202-0/+16
| | | | Start https://github.com/profanity-im/profanity/issues/1340
* Fix `/correction` char displayMichael Vetter2020-05-061-1/+1
| | | | | https://github.com/profanity-im/profanity/commit/1f8b1eb740391941e79e1004ad041f8178a2b674 made it possible to have utf8 chars as correction chars. So since then prefs_get_correction_char() doesn't return a regular char but a char*. Seems like there was an oversight that we need to use %s then.
* Remove unanimous MAM displayMichael Vetter2020-04-253-39/+14
| | | | | | For some time users could choose to have the old way "unanimous" where all the MUC history is just grey (or whatever was set). Now it is always just displayed like regular new incoming MUC text.
* ui: fix conditionDmitry Podgorny2020-04-232-2/+4
| | | | | Fix mistake in a condition. Also add sanity check to win_refresh_with_subwin().
* Fixup for bad56b50623837644d0888cf8e5b059111b65ac2Michael Vetter2020-04-221-1/+1
| | | | sorry.. doing too many things at once..
* wins_show_subwin(): Add windows type testMichael Vetter2020-04-221-0/+6
| | | | Fix https://github.com/profanity-im/profanity/issues/1321
* inp_readline() Correct slashguard featureMichael Vetter2020-04-211-4/+6
| | | | Protect against invalid reads by checking the length.
* Make compiler happy about win_refresh_without_subwinMichael Vetter2020-04-201-1/+1
|
* win_refresh_with_subwin() fixupMichael Vetter2020-04-201-2/+1
| | | | Fixup for 86af6925d9fc0b2656eac15b0c8c7aba60589ce5
* Remove unused func wins_close_current()Michael Vetter2020-04-202-7/+0
|
* _destroy_tab() dont set tab to NULLMichael Vetter2020-04-201-1/+0
| | | | | | | Setting the local pointer to NULL has no effect. _destroy_tab() is used for g_hash_table_new_full() so we cant use a ** and set tab to NULL.
* Simplify win_refresh_with_subwin()Michael Vetter2020-04-201-6/+5
|
* _mucwin_print_mention(): No need to assign posMichael Vetter2020-04-201-1/+1
|
* ui_room_join() dont get nick twiceMichael Vetter2020-04-201-1/+0
|
* cons_show_aliases() simpify conditionMichael Vetter2020-04-201-3/+1
|
* Make _inp_edited() more robustDmitry Podgorny2020-04-191-1/+8
|
* Don't expose upload_processesMichael Vetter2020-04-171-9/+2
| | | | | | | | That's actually not good practise. Realized this when checking for multiple symbol definition in issue mentioned below. Regards https://github.com/profanity-im/profanity/issues/1314
* Free GError objectsDmitry Podgorny2020-04-141-2/+3
| | | | | | | | | | glib functions can allocate a GError object that must be freed with g_error_free(). Otherwise a memory leak happens. There are similar unfixed places in omemo, check: grep "&error" src/omemo/omemo.c Fixes #1304.
* Only print chathistory if regular chat messageMichael Vetter2020-04-131-1/+4
| | | | | | | | | | | MUCPMs and regular chat messages get printed with the same code. But we don't save MUC PMs in the sqldb, because another jid could use the same nick the next time. And if we would take the log out we would need a different routine, checking for resourcepart too. Fix https://github.com/profanity-im/profanity/issues/1312
* Add hidden MAM setting and trigger MAM retrievel when opening new windowMichael Vetter2020-04-121-8/+13
| | | | | | | | | | | | Only when we start the conversation. Not yet when we get messaged and a new window is opened. Need to have sorting of messages in the window buffer then, I guess. Also MAM IQ should only be send one time in such a case. If MAM is enabled history from sql backend will not be shown. `mam` in profrc enables experimental MAM. Can change soon again. Don't rely on stuff in this stage ;)
* MAM: Correctly display incoming MAM chat messageMichael Vetter2020-04-111-3/+10
|
* Add to_jid field to ProfMessage structMichael Vetter2020-04-113-14/+14
| | | | | Is usefult in many cases if we want cleaner code. Hope this edit didn't break anything though ;-)
* Quick and dirty display of MAM messagesMichael Vetter2020-04-111-3/+6
|
* Fix memory leaks in cons_roster_setting()Dmitry Podgorny2020-04-101-0/+3
|
* Fix memory leaks in _rosterwin_resources()Dmitry Podgorny2020-04-091-0/+2
|
* Retrieve message type from databaseMichael Vetter2020-04-084-6/+5
| | | | So we don't have to check for MUC another way.
* db: Fix memleaksMichael Vetter2020-04-061-2/+1
|