about summary refs log tree commit diff stats
path: root/src/ui/chatwin.c
Commit message (Collapse)AuthorAgeFilesLines
* Adapt to new g_string_free() usageMichael Vetter2023-03-231-4/+1
| | | | | Somehow this must have been overlooked when doing e59c401c840f379e64945734969db03b0e55ef22.
* Fix quote and url autocompletion for MAM and historyMarcoPolo-PasTonMolo2023-02-131-5/+7
| | | | | | | | After adding MAM quote and url autocompletion wouldn't pick up messages from MAM or history(from DB) or would have them in the wrong order. This commit fixes that. Fixes https://github.com/profanity-im/profanity/issues/1770
* Update copyright yearMichael Vetter2023-01-101-1/+1
|
* Merge MAM improvements from #1724Michael Vetter2022-10-211-10/+49
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I think this PR already solves and improves the MAM situation a lot. What's @MarcoPolo-PasTonMolo still wanted to do in this branch is: * MAM for mucs * Check if url and quotes autocompletion works fine * Check if the api still works fine * Resolve conflicts Conflicts are solved with this commit. MAM for mucs can be another feature PR. The rest we can check while being on master. And more people can help testing.
| * Don't notify on MAM messagesMarcoPolo-PasTonMolo2022-08-201-7/+10
| |
| * Handle late deliveryMarcoPolo-PasTonMolo2022-08-201-6/+4
| |
| * Handle MAM when chatwin gets created from incoming messageMarcoPolo-PasTonMolo2022-07-101-1/+4
| |
| * Have ability to scroll through history even without MAMMarcoPolo-PasTonMolo2022-07-101-2/+2
| |
| * Handle scrolling down when buffer fills upMarcoPolo-PasTonMolo2022-07-101-5/+13
| |
| * CleanupMarcoPolo-PasTonMolo2022-07-051-5/+2
| |
| * Add loading history message on initial MAM requestMarcoPolo-PasTonMolo2022-07-051-0/+1
| | | | | | | | | | | | 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-6/+9
| | | | | | | | | | | | 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.
| * Get messages from history when scrolling up.MarcoPolo-PasTonMolo2022-07-031-2/+28
| |
* | Exit *_incoming_msg functions when plain message is emptyMichael Vetter2022-07-041-0/+6
| | | | | | | | Fix https://github.com/profanity-im/profanity/issues/1733
* | Fix build without omemoMarcoPolo-PasTonMolo2022-06-171-0/+2
| |
* | Don't forget encryption status for OX and PGP.MarcoPolo-PasTonMolo2022-06-171-7/+53
|/ | | | | | | | Use a pgp.enabled and ox.enabled array the same way that omemo.enabled is used. Fixes https://github.com/profanity-im/profanity/issues/1694 Fixes https://github.com/profanity-im/profanity/issues/733
* Update copyright yearMichael Vetter2022-05-091-1/+1
|
* Add quote autocompletion for previous messagesMarcoPolo-PasTonMolo2022-03-211-0/+4
| | | | | | | | | | 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-5/+5
| | | | Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
* Format code correctlyMichael Vetter2021-10-051-2/+2
|
* chatwin: fix memory leak when load historyDmitry Podgorny2021-07-201-0/+4
| | | | | | | | _chatwin_history() reassigns msg->plain without freeing previous string. This leads to memory leak. As a temporary solution, free replaced string. Fixes #1585.
* 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
|