about summary refs log tree commit diff stats
path: root/src/ui/window.c
Commit message (Collapse)AuthorAgeFilesLines
* separator: Print only one for each chat windowMichael Vetter2019-12-131-3/+19
| | | | | | So far we printed one after the last received message, which doesn't make much sense of course. Now only print one if there is not already one present.
* separator: print trackbar across the whole lineMichael Vetter2019-12-131-13/+19
| | | | | | | | Use the whole line. We do this in win_redraw() so upon terminal size change it still matches. Regards https://github.com/profanity-im/profanity/issues/1238
* Initial work on last-read-position featureMichael Vetter2019-12-131-0/+33
| | | | | | | | Print dashes on the position we last left off in a chat window. So far the number of dashes is hardcoded, and the feature only works in chat windows. Regards https://github.com/profanity-im/profanity/issues/1238
* Implement Color Vision Deficiencies settingMichael Vetter2019-12-121-1/+3
| | | | | | Implement settings for redgreen and blue blindness. Regards https://github.com/profanity-im/profanity/issues/1191
* XEP-0392: theme, ui: conditionally colorize user nicksAurelien Aptel2019-12-031-0/+4
| | | | | | | | | * add theme_hash_attrs() * when printing a user message check PREF_COLOR_NICK to decide whether to colorize it or not ideally we should hash the jid instead of the nick but this is already a first step.
* _win_print: Guard against time being nullMichael Vetter2019-12-011-1/+1
| | | | | | | | | | | | | | | This is encountered when biboumi is used. Example: `/join #debian-next%irc.oftc.net@biboumi.lebihan.pl` It seems then time can be null. g_date_time_format() will not work in this case although time_pref will not be "off". So let's not call g_date_time_format() in this case. But treat it like time is set to off. However message reflection will not work properly with biboumi. Probably we dont get origin-id. Fix https://github.com/profanity-im/profanity/issues/1230
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Move id from DeliveryReceipt to ProfBuffEntry structMichael Vetter2019-11-011-16/+14
| | | | | | | | | | | | | | | | | XEP-0184: Message Delivery Receipts, *requires* the id attribute. Generally this is not the case. For this reason the id was only present in the DeliveryReceipt struct since it was only used for XEP-0184. For https://github.com/profanity-im/profanity/issues/660 XEP-0313 MAM and https://github.com/profanity-im/profanity/issues/805 XEP-0308 Last Message Correction we will also need the id. So in preparation for further work let's move the id to the general ProfBuffEntry. We will need to adapt code so that we actually always write the ID if we receive one.
* Replace sent_messages list with algoMichael Vetter2019-10-311-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | For OMEMO we had a list with our sent messages. It was used so that we don't decrypt our own messages in MUCs that come in via reflection. Recently for https://github.com/profanity-im/profanity/pull/1209 we started to use origin-id and use an algorithm so we can detect our own sent messages via checking origin-id. Profanity uses the same id for the message ID and origin-id. With 06f300a42c4c627b6f1817bd48d92f083ffd9883 we added the message_is_sent_by_us() function. We implemented XEP-0359 this way to fix https://github.com/profanity-im/profanity/issues/1201 so that we don't log our own messages in MUCs twice. We can now check whether the message was sent by us using this function and can get rid of the list. Probably we could also put many parts of the sv_ev_room_message() function inside (else) part of `if (!(g_strcmp0(mynick, message->jid->resourcepart) == 0 && message_is_sent_by_us(message))) {`. Have to look more closely whether any of this needs to be run in case the message actually comes from us.
* Merge pull request #874 from spiridoncha/masterMichael Vetter2019-10-051-1/+9
|\ | | | | Change /clear behaviour. Closes issue #855.
| * Makes /clear behavior configurable.Spiridonov Alexander2016-11-071-0/+5
| |
| * Change /clear behaviour. Closes issue #855.Spiridonov Alexander2016-10-221-1/+4
| |
* | Allow colorization of history messagesMichael Vetter2019-09-101-2/+2
| | | | | | | | | | | | | | | | History was always printed with `THEME_DEFAULT` we now use `THEME_TEXT_HISTORY` which is accesible in theme files via `main.text.history`. Fix https://github.com/profanity-im/profanity/issues/1170
* | Remove dead assignmentsMichael Vetter2019-07-221-1/+1
| |
* | Rename prof_message_t into ProfMessagePaul Fariello2019-06-201-1/+1
| |
* | Set foreground color for untrusted messagesPaul Fariello2019-06-201-6/+5
| |
* | Add prof_message_t to wrap all message attributesPaul Fariello2019-06-201-14/+13
| | | | | | | | | | | | | | Probably missing copy of body to plain in carbon and privmessage. Only covers the incoming message path because goal is OMEMO decryption of untrusted message. Cover some of the log functions but not all.
* | Use flags in xmmp/message.c for encryption and trustPaul Fariello2019-06-201-2/+12
| |
* | Rework MUC reflected message filteringPaul Fariello2019-04-101-0/+1
| | | | | | | | | | | | | | | | | | Reflected messages can't be filtered by nick only otherwise you might ignore messages comming from you on another devices. Consequently we maintain a list of sent messages id in mucwin. To be sure the id will be correctly reflected we use the origin-id stanza.
* | Log and print outgoing encrypted messagePaul Fariello2019-04-101-0/+1
| |
* | Add OMEMO message encryption and decryptionPaul Fariello2019-04-101-0/+2
| |
* | Move OMEMO initialization to profanity intializationPaul Fariello2019-04-101-0/+1
| | | | | | | | Also store identity keys into account
* | Update copyright to include 2019Michael Vetter2019-01-221-1/+1
| |
* | Fix command exec error outputPaul Fariello2018-09-051-1/+1
| |
* | Add support for command config executionPaul Fariello2018-09-051-1/+2
| |
* | Add conf win callbackPaul Fariello2018-09-051-1/+10
| |
* | Rename mucconf wins into conf winsPaul Fariello2018-09-051-17/+17
| | | | | | | | Configuration windows are now being used by both muc and cmd.
* | Add command exec error handlingPaul Fariello2018-09-051-0/+15
| |
* | Handle simple executionPaul Fariello2018-09-051-0/+7
| | | | | | | | Tested with ping from biboumi
* | Add command subcommands: list and execPaul Fariello2018-09-051-0/+28
| | | | | | | | Also handle list result
* | Add preferences for tab displayJames Booth2018-03-091-14/+45
| |
* | Add prefs for empty tabs and tab namesJames Booth2018-03-081-2/+5
| |
* | Show name in statusbar tabs WIPJames Booth2018-03-081-3/+11
| |
* | Update copyrightJames Booth2018-01-211-1/+1
| |
* | Update CopyrightJames Booth2017-01-281-1/+1
| |
* | Allow room display properies to be set by pluginsJames Booth2017-01-201-8/+12
| |
* | Allow chat prefix char to be set by pluginsJames Booth2017-01-201-1/+10
| |
* | Add titlebar encryption text to plugins apiJames Booth2017-01-191-0/+2
| |
* | Remove unused functionJames Booth2016-11-241-10/+0
|/
* Rename buffer functionsJames Booth2016-10-161-16/+16
|
* Fix win_append buffer pushJames Booth2016-10-151-1/+1
|
* Add win highlight fuctionsJames Booth2016-10-151-19/+107
|
* Use varargs in win_println_indentJames Booth2016-10-151-6/+20
|
* Add win_print_historyJames Booth2016-10-151-0/+20
|
* Rename win_print_incoming_message -> win_print_incomingJames Booth2016-10-151-1/+1
|
* Add win_print_outgoingJames Booth2016-10-151-0/+20
|
* Add win_appendJames Booth2016-10-151-31/+50
|
* Add win_appendlnJames Booth2016-10-151-15/+33
|
* Add win_printJames Booth2016-10-151-15/+35
|
* Rename win_println -> win_println_indentJames Booth2016-10-151-1/+1
|