about summary refs log tree commit diff stats
path: root/src/ui/window.c
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Remove win_vprintln_chJames Booth2016-10-151-12/+0
|
* Remove whitespaceJames Booth2016-10-151-1/+0
|
* Rename win_get_string -> win_to_stringJames Booth2016-10-151-1/+1
|
* Use win_printf_line where appropriateJames Booth2016-10-151-4/+4
|
* Add ch arg to win_printf_lineJames Booth2016-10-151-9/+9
|
* Use THEME_DEFAULTJames Booth2016-10-141-27/+27
|
* Add win_printf_lineJames Booth2016-10-141-6/+6
|