about summary refs log tree commit diff stats
path: root/src/ui/chatwin.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Update copyrightMichael Vetter2021-01-081-1/+1
|
* 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.
* Cast chat/muc window to correct type and refactor cmd_sendfileWilliam Wennerström2020-12-091-0/+2
| | | | Fixes #1449
* Pass window to functions so we dont have to call twiceMichael Vetter2020-07-091-1/+1
|
* Dont hilight console once all messages have been readMichael Vetter2020-07-091-1/+1
| | | | | | | | | | | | | | | | If we receive a message we get: << room message: eagle@conference.anoxinon.me (win 2) Same for private chats and regular chats. And several other kinds of notifications. If we only receive notifications from a chat window it would be nice to also clear the hilight on the console window since we already catched up by reading the actual message in the chat window. Probably not the best description :-) I hope you get it.. Regards https://github.com/profanity-im/profanity/issues/1399
* Apply coding styleMichael Vetter2020-07-071-92/+92
|
* Revert "Apply coding style"Michael Vetter2020-07-071-101/+101
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-101/+101
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* Feature request - XEP-0373: OpenPGP for XMPP (OX)DebXWoody2020-06-291-0/+5
| | | | | | | | | Basic implementation of XEP-0373: OpenPGP for XMPP. https://xmpp.org/extensions/xep-0373.html Command /ox Issue: #1331
* Add and use connection_get_barejid()Michael Vetter2020-05-251-3/+3
| | | | Instead of connection_get_fulljid() and then creating a Jid from it.
* Build URL ac upon printing of message in windowMichael Vetter2020-05-201-1/+3
|
* 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-111-3/+3
| | | | | 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
|
* Retrieve message type from databaseMichael Vetter2020-04-081-1/+1
| | | | So we don't have to check for MUC another way.
* db: Fix memleaksMichael Vetter2020-04-061-2/+1
|
* Adapt win_print_history() to work with muc tooMichael Vetter2020-04-061-2/+1
|
* Remove chat_log_get_previous()Michael Vetter2020-04-061-7/+3
| | | | | | | | | | | | We now dont get the log files from the text files via chat_log_get_previous() anymore. We use the sql backend via log_database_get_previous_chat(). So far it just has the same behaviour like chat_log_get_previous(), except that in _chatwin_history() we don't pass the sender to win_print_history() which should be fixed in a commit soon. And log_database_get_previous_chat() can later easily be expanded to fix https://github.com/profanity-im/profanity/issues/205.
* Get regular chat history out of sql backendMichael Vetter2020-04-061-19/+8
|
* Allow utf8 symbols as omemo/pgp/otr indicator charMichael Vetter2020-02-201-21/+29
| | | | Fix https://github.com/profanity-im/profanity/issues/1264
* Refactor win_print_history()Michael Vetter2020-02-171-1/+1
| | | | We never use the printf like behaviour anyways.
* Refactor win_print_outgoing()Michael Vetter2020-02-171-2/+2
| | | | We never use the printf like behaviour anyways.
* xep-0308: enable for carbon copied messagesMichael Vetter2020-02-141-1/+0
| | | | | | | If we are connected with another client and send a message, then correct it. We now display it correctly in Profanity. Id wasn't saved for carbon copied messages too so far.
* xep-0308: enable correction in outgoing messages with delivery receiptsMichael Vetter2020-02-141-2/+1
|
* Rename win_print_with_receipt() -> win_print_outgoing_with_receipt()Michael Vetter2020-02-141-1/+1
|
* Add myself to copyrightMichael Vetter2020-02-141-0/+1
|
* xep-0308: update the UI upon sending a corrected messageMichael Vetter2020-02-111-8/+10
| | | | | So far we don't do this for encrypted messages. Still needs to be done. And MUC also needs to be done.
* xep-0308: Implement `/correct` to correct the last send messageMichael Vetter2020-02-101-0/+16
| | | | | | | | So far the correction is sent. But the UI in Profanity itself is not updated. Also autocompletion for `/correct` with the last sent message is missing.
* Initial work on last-read-position featureMichael Vetter2019-12-131-0/+1
| | | | | | | | 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
* Add vim modelineMichael Vetter2019-11-131-0/+1
|
* Make sure date vars are initializedMichael Vetter2019-10-211-3/+3
|
* Properly display chatwin historyMichael Vetter2019-10-211-4/+10
| | | | | | | | | | | | | | | | | | | | So far if one had enabled `/history` and did `/msg somenick` the history was loaded from file and displayed like this: ``` 04-04-17 15:23 - 3/4/2017: 01-01-00 10:30 - me: .... 01-01-00 10:31 - somebody: .... 01-01-00 10:32 - somebody: .... ``` So the first line contained the actual date. But the date used in each line was always 01-01-2000. This date was for some reason hardcoded. This commit now actually uses that date to build the proper GDateTime instead of just printing it. Fix https://github.com/profanity-im/profanity/issues/922
* Fix handling of encrypted carbonsPaul Fariello2019-06-211-4/+4
|
* Rename prof_message_t into ProfMessagePaul Fariello2019-06-201-1/+1
|
* Add prof_message_t to wrap all message attributesPaul Fariello2019-06-201-14/+16
| | | | | | | 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.
* Add OMEMO policyPaul Fariello2019-04-171-0/+10
| | | | | | | | | | | | There is 3 policy: - manual: OMEMO session are only started manually - automatic: OMEMO session are only started if they have been started manually before - always: OMEMO session are always started unless they have been ended manually before Closes #1040 and fixes #1052
* Ensure encrypted carbon of own message are marked as encryptedPaul Fariello2019-04-101-0/+2
|
* Add OMEMO message encryption and decryptionPaul Fariello2019-04-101-0/+2
|
* Update copyright to include 2019Michael Vetter2019-01-221-1/+1
|
* Add preferences for tab displayJames Booth2018-03-091-4/+4
|
* Show name in statusbar tabs WIPJames Booth2018-03-081-6/+8
|
* Update copyrightJames Booth2018-01-211-1/+1
|
* Update CopyrightJames Booth2017-01-281-1/+1
|
* Allow chat prefix char to be set by pluginsJames Booth2017-01-201-1/+39
|
* Add titlebar encryption text to plugins apiJames Booth2017-01-191-0/+18
|
* Add win_print_historyJames Booth2016-10-151-1/+1
|