about summary refs log tree commit diff stats
path: root/src/ui/window.c
Commit message (Collapse)AuthorAgeFilesLines
* Have ability to scroll through history even without MAMMarcoPolo-PasTonMolo2022-07-101-3/+3
|
* Handle scrolling down when buffer fills upMarcoPolo-PasTonMolo2022-07-101-1/+15
|
* CleanupMarcoPolo-PasTonMolo2022-07-051-7/+2
|
* Add loading history message on initial MAM requestMarcoPolo-PasTonMolo2022-07-051-2/+10
| | | | | | 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-051-7/+6
| | | | | | 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-041-5/+13
|
* Fech data from mam when all history gets displayedMarcoPolo-PasTonMolo2022-07-031-1/+7
| | | | | | 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-031-3/+36
|
* Fix duplicate messages in chat with oneself.MarcoPolo-PasTonMolo2022-05-311-1/+5
| | | | | | | | | | | | Messages would get duplicated when you chat with yourself, worse if you had omemo enabled the duplicated message would say something along the lines of "Your client doesn't support OMEMO". The cause was carbons when the message was sent from another client, whilst it was a sent and received message when profanity was the one to send it. This commit ignores the carbon message in the 1st case and ignores the received one in the 2nd. Fixes https://github.com/profanity-im/profanity/issues/1595
* Update copyright yearMichael Vetter2022-05-091-1/+1
|
* Restore default behaviour for stampsMichael Vetter2022-05-031-1/+1
| | | | | | | | | | | | @mdosch discovered that we now don't print `:` for messages from others anymore. Until https://github.com/profanity-im/profanity/pull/1663#issuecomment-1114625151 is fixed lets restore the default behaviour to always add `:` in `_win_print_internal()`. The result will be that a stamp set to `-->` will also look like `-->:`.
* Merge branch 'master' into add_stamp_settingsMichael Vetter2022-04-281-3/+5
|\
| * Use correct colour for their nick when showing historyPaul Fertser2022-04-011-0/+1
| |
| * fix linter warningsSteffen Jaeckel2022-03-311-1/+2
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
| * run `make format`Steffen Jaeckel2022-03-301-2/+2
| | | | | | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* | Rename stamp preference variableMichael Vetter2022-04-281-1/+1
| | | | | | | | | | PREF_INCOMING_STR -> PREF_INCOMING_STAMP PREF_OUTGOING_STR -> PREF_OUTGOING_STAMP
* | add /stamp commandArtjom Vejsel2022-04-021-2/+3
|/ | | | command allow override standard stamps of incoming and outgoing messages
* Use funcs available in all glib versions to replace \n in quotesMarcoPolo-PasTonMolo2022-03-211-2/+7
|
* Add quote autocompletion for previous messagesMarcoPolo-PasTonMolo2022-03-211-0/+23
| | | | | | | | | | Fixes https://github.com/profanity-im/profanity/issues/1649 Type `>` then press tab or shift tab to autocomplete previous messages, then type your reply and send message. Newlines are replaced with newline followed by `> `. A newline is added at the end so that the user can immediately type a message without manually adding a new line.
* auto-formatSteffen Jaeckel2022-02-011-1/+1
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Move declaration and definition of win_get_last_sent_message to the correct ↵MarcoPolo-PasTonMolo2021-10-221-0/+29
| | | | place
* Format code correctlyMichael Vetter2021-10-051-4/+3
|
* Attention flag - Implemented Alt+mDebXWoody2021-05-291-0/+33
|
* Attention flag for groupchatsDebXWoody2021-05-291-0/+1
| | | | Attention flag for groupchat and display the windows via "/wins attention"
* Attention flag for chat windowsDebXWoody2021-05-291-1/+1
| | | | | | | 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.
* MUC: Show offline members in sidebarThorben Günther2021-03-081-0/+5
|
* 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.
* Update copyrightMichael Vetter2021-01-081-1/+1
|
* 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
|
* Expand trackbar to whole lineMichael Vetter2020-12-091-1/+1
| | | | Fix https://github.com/profanity-im/profanity/issues/1448
* Run make format on rebaseWilliam Wennerström2020-11-161-1/+1
|
* Add http_download toolWilliam Wennerström2020-11-161-1/+1
|
* Declare counter var inside loopMichael Vetter2020-11-091-8/+6
| | | | We require c99/gnu99 anyways.
* Avoid passing NULL pointers to curses functions.nia2020-09-041-1/+6
| | | | | | | | 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-041-0/+2
| | | | | | - Add NetBSD as a recognized platform without -ldl. - Allow building with NetBSD libcurses instead of ncurses. - Portability to NetBSD sh - use POSIX '=' instead of '=='.
* Fix memleak in win_print_outgoing_with_receipt()Michael Vetter2020-07-231-0/+1
| | | | | | We should actually process the receipts also in LMC I think. Regards https://github.com/profanity-im/profanity/issues/805
* Apply coding styleMichael Vetter2020-07-071-347/+345
|
* Revert "Apply coding style"Michael Vetter2020-07-071-350/+352
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-352/+350
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Remove prefs_free_string()Michael Vetter2020-07-021-3/+3
| | | | | It just does a free. Related to b580b9ef119045f142fa4baa9689a1c5ce8864ef
* 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-291-0/+2
| | | | | | | | | Basic implementation of XEP-0373: OpenPGP for XMPP. https://xmpp.org/extensions/xep-0373.html Command /ox Issue: #1331
* Remove unanimous MAM displayMichael Vetter2020-04-251-18/+8
| | | | | | 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-231-0/+3
| | | | | Fix mistake in a condition. Also add sanity check to win_refresh_with_subwin().
* 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
* Simplify win_refresh_with_subwin()Michael Vetter2020-04-201-6/+5
|