about summary refs log tree commit diff stats
path: root/src/ui
Commit message (Collapse)AuthorAgeFilesLines
* Print editor command in /executable overviewMichael Vetter2021-06-101-0/+4
|
* win unread: fix window testMichael Vetter2021-06-091-5/+4
| | | | Fix https://github.com/profanity-im/profanity/issues/1554
* Add command to show single bookmark detailsMichael Vetter2021-06-092-0/+29
| | | | | | | `/bookmark list` lists all bookmarks with its details. `/bookmark list <jid>` shows the details of a single bookmark. Implement https://github.com/profanity-im/profanity/issues/1558
* Fix multiple mentions in one lineMichael Vetter2021-06-081-1/+4
| | | | | | | | `jubalh: jubalh jubalh` resulted in `20:32:34 - testuser1: jubalh20:32:34 - testuser1: : jubalh20:32:34 - testuser1: jubalh` Print date/nick only once at beginning of line.
* Use utf-8 safe functions in _mucwin_print_mention()Michael Vetter2021-06-081-5/+12
| | | | | | | | | | get_mentions() correctly counts utf-8 chars. So the positions of mentions we get from there are correct. But in _mucwin_print_mention() we set position equal to byte. We need to use utf-8 safe functions here. Regards https://github.com/profanity-im/profanity/issues/1231
* Change restarted omemo textMichael Vetter2021-06-021-2/+2
|
* Restart OMEMO Session after lost connectionDebXWoody2021-06-021-7/+29
| | | | | | | | | | When the connection has been re-established, chat and groupchat with OMEMO should restat the OMEMO Session. Fix: #1530 * Added HAVE_OMEMO * clang-format and user output
* Change ui_win_has_attention() logicMichael Vetter2021-05-311-3/+5
|
* Display attention hint in titlebar for mucs tooMichael Vetter2021-05-311-12/+23
| | | | | | | | * Display the `[ATTENTION]` hint in the titlebar for both chatwins and mucwins. * Use THEME_TITLE_TEXT instead of THEME_TITLE_ENCRYPT * Have separate function `_show_attention` and don't do it in unrelated `_show_privacy`.
* Attention-flag: Fix next windowDebXWoody2021-05-291-8/+25
|
* Attention flag message ( enabled, disabled)DebXWoody2021-05-291-1/+6
| | | | | When the user enables or disabled the attention flag, a message will be displayed in the chat window.
* Attention flag - Implemented Alt+mDebXWoody2021-05-296-11/+86
|
* Attention flag for groupchatsDebXWoody2021-05-297-2/+79
| | | | Attention flag for groupchat and display the windows via "/wins attention"
* Attention flag for chat windowsDebXWoody2021-05-294-1/+36
| | | | | | | User is able to toggle a flag for chat windows. This flag should be used to mark the window for "Attention". Use Ctrl+f to mark the window.
* Have separate settings for intypeMichael Vetter2021-05-082-9/+18
| | | | | | | | | | 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
* Apply pre_chat_message_display hook to historyDustin Lagoy2021-04-271-0/+1
|
* OMEMO: Remove duplicate session initalisationMaximilian Wuttke2021-04-081-2/+12
| | | | | | 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-301-1/+0
| | | | | | | _GNU_SOURCE was even in some files where it was not needed at all (http*). Let's replace asprintf() with g_strdup_printf().
* Add config.h in files were it was missingMichael Vetter2021-03-267-0/+14
| | | | Related to https://github.com/profanity-im/profanity/issues/1512
* Update ui_ask_password to support confirmationThorben Günther2021-03-112-3/+7
| | | | | Just prints a different string to console. Useful for changing passwords or account registration.
* Merge pull request #1495 from xenrox/offline-membersMichael Vetter2021-03-085-10/+78
|\ | | | | MUC: Show offline members in sidebar
| * MUC: Show offline members in sidebarThorben Günther2021-03-085-10/+78
| |
* | Draw wintitle using fputs and fprintf instead of /bin/echo.Akce2021-02-281-25/+8
|/
* Bugfix: Titlebar show name without room nameStefan2021-02-141-1/+1
| | | | | | | Error log: GLib-CRITICAL - g_string_insert_len: assertion 'len == 0 || val != NULL' failed Check if a room name exists, before adding the name into the title bar.
* Add /mam commandMichael Vetter2021-01-282-0/+11
| | | | Regards https://github.com/profanity-im/profanity/issues/660
* Simplify console notification codeMichael Vetter2021-01-211-29/+15
| | | | | | | Functions had some duplicate code: * cons_show_incoming_room_message() * cons_show_incoming_message() * cons_show_incoming_private_message()
* Update copyrightMichael Vetter2021-01-0813-14/+14
|
* Set input window size to max window sizekaffeekanne2020-12-111-2/+2
| | | | Input window size was one cell off, therefore terminal themes with background color set were rendered incorrectly, fixes #1458
* Remove blank line after trackbarkaffeekanne2020-12-111-2/+0
| | | | Remove added blank line after trackbar, introduced by 606c1e51e688cb111b9837579a35460508324b63
* Remove old TODOMichael Vetter2020-12-111-1/+0
| | | | | | | | | | | | It was added in f7fe87dd4e7e14112fbcb0ae8794d90ffee64f2f when I rewrote window functions to include more infos (not just char* but whole jid struct I think). The same todo was added to win_print_outgoing_muc() but removed in f3d9de133e90ed10b5b7bd61196619eab1fedb19. This TODO should have been removed in f3d9de133e90ed10b5b7bd61196619eab1fedb19 since there we added the myjid parameter.
* Fix color for win_print_outgoing()Michael Vetter2020-12-111-1/+1
| | | | | | | | | | | | | Discovered by @aba-hollerer. Mistake was introduced in b6b7dd5ad497a71e250b8b3cef0bb987314b141d probably due to a wrong copy/paste. First wasn't reproducible because I had `/receipts request on` and thus win_print_outgoing_receipts() is used which has the correct THEME_TEXT_ME. Fixes https://github.com/profanity-im/profanity/issues/1441
* Remove empty lineMichael Vetter2020-12-101-1/+0
|
* Remove not needed initialization in chatwin_new()Michael Vetter2020-12-101-4/+0
| | | | | | | | | | | | | | 00dbc1ba7c66c3bb6898aed26922bf5295768bb1 attempted to fix https://github.com/profanity-im/profanity/issues/1449. Here we revert the part about initializing is_omemo in chatwin_new() since this is done in win_create_chat() already. The actual mistake was the wrong cast of the muc window which is fixed by the same commit. The mistake was introduced in in 3370418d71de255c832da97113543e554ec0e86b. While being at it we also remove the is_ox initialization since this is handled in win_create_chat()/win_create_muc() too.
* Fix various typosMichael Vetter2020-12-103-6/+6
|
* Cast chat/muc window to correct type and refactor cmd_sendfileWilliam Wennerström2020-12-091-0/+2
| | | | Fixes #1449
* Simplify notify()Michael Vetter2020-12-091-2/+2
|
* Expand trackbar to whole lineMichael Vetter2020-12-091-1/+1
| | | | Fix https://github.com/profanity-im/profanity/issues/1448
* Remove scheme and filetype matching for url (save|open)William Wennerström2020-12-081-3/+6
|
* Fix segfault for urlopen[1]William Wennerström2020-12-071-1/+1
|
* Fix bad order of parameters for url saveWilliam Wennerström2020-12-071-1/+1
|
* Refactor for threaded external executable for built-in download methodsWilliam Wennerström2020-12-031-2/+2
|
* Run make format on rebaseWilliam Wennerström2020-11-163-3/+3
|
* Add http_download toolWilliam Wennerström2020-11-162-2/+2
|
* Remove /omemo sendfileWilliam Wennerström2020-11-161-7/+1
|
* Declare counter var inside loopMichael Vetter2020-11-095-24/+14
| | | | We require c99/gnu99 anyways.
* Since the string from strerror should never be modified, use const.Philipp Klaus Krause2020-10-141-1/+1
|
* Fix use-after-free which is introduced in cons_alert()Dmitry Podgorny2020-10-091-1/+1
| | | | | | Commit f12161f fixes memory leak, but introduces use-after-free issue. Allocate new memory for win_name with g_strdup() since it is freed with g_free() later.
* Fix memleak in cons_alert()Michael Vetter2020-10-071-0/+2
| | | | Close https://github.com/profanity-im/profanity/issues/1427
* Avoid passing NULL pointers to curses functions.nia2020-09-043-9/+23
| | | | | | | | This allows profanity to work without segfaulting from NULL pointer dereferences when used with NetBSD libcurses. Basic functionality was tested, there may be more NULL pointer issues hiding.
* Basic support for building on NetBSD.nia2020-09-049-0/+18
| | | | | | - Add NetBSD as a recognized platform without -ldl. - Allow building with NetBSD libcurses instead of ncurses. - Portability to NetBSD sh - use POSIX '=' instead of '=='.