Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Check if server suppors MAM | Michael Vetter | 2020-04-12 | 2 | -2/+6 | |
| | ||||||
* | Get MAM since yesterday | Michael Vetter | 2020-04-12 | 1 | -1/+7 | |
| | | | | | | | | | | | | | Later we will have several options. Getting everything since last timestamp (if none everything at all). Getting everything since today + configure time (1 week). Should also have a reload all command like conversations once you cleared the history. All MAM messages should be written into sql db. And then probably displayed from there so that regular history works too. | |||||
* | MAM: Correctly display incoming MAM chat message | Michael Vetter | 2020-04-11 | 4 | -15/+42 | |
| | ||||||
* | Add to_jid field to ProfMessage struct | Michael Vetter | 2020-04-11 | 9 | -91/+103 | |
| | | | | | Is usefult in many cases if we want cleaner code. Hope this edit didn't break anything though ;-) | |||||
* | Quick and dirty display of MAM messages | Michael Vetter | 2020-04-11 | 1 | -3/+6 | |
| | ||||||
* | First test with receiving MAM | Michael Vetter | 2020-04-11 | 1 | -0/+27 | |
| | ||||||
* | _handle_chat: return if no 'from' | Michael Vetter | 2020-04-11 | 1 | -0/+3 | |
| | | | | Let's not crash :-) | |||||
* | Don't crash if we get a message without from or type | Michael Vetter | 2020-04-11 | 1 | -1/+8 | |
| | | | | | | | | MAM messages don't have a type nor a from. If we detect a message without type let's log it and exit without continuing to try to parse it. Otherwise we go into _handle_chat() and crash on the no from. | |||||
* | First MAM test | Michael Vetter | 2020-04-11 | 4 | -0/+105 | |
| | | | | | | Send a request (which we can't handle yet) :-) Regards https://github.com/profanity-im/profanity/issues/660 | |||||
* | Fix memory leaks in cons_roster_setting() | Dmitry Podgorny | 2020-04-10 | 1 | -0/+3 | |
| | ||||||
* | Fix error in getting previous chatlog | Michael Vetter | 2020-04-10 | 1 | -1/+5 | |
| | | | | | | | | | Our search was too broad, and thus incorrect. One of the various mistakes it can cause was https://github.com/profanity-im/profanity/issues/1308 Fix https://github.com/profanity-im/profanity/issues/1308 | |||||
* | Merge pull request #1309 from profanity-im/use-after-free | Michael Vetter | 2020-04-10 | 1 | -4/+8 | |
|\ | | | | | Fix use-after-free in stanza_create_caps_from_query_element() | |||||
| * | Fix use-after-free in stanza_create_caps_from_query_element() | Dmitry Podgorny | 2020-04-09 | 1 | -4/+8 | |
| | | | | | | | | | | | | | | | | | | The function creates a form to find such strings as software, os, etc. It remembers the strings allocated by form_create() and use them below in caps_create(). The issue is that the form is destroyed before and as result the strings are freed too. As solution, allocate own copy of strings. | |||||
* | | Fix memory leaks in _rosterwin_resources() | Dmitry Podgorny | 2020-04-09 | 1 | -0/+2 | |
|/ | ||||||
* | Retrieve message type from database | Michael Vetter | 2020-04-08 | 5 | -7/+21 | |
| | | | | So we don't have to check for MUC another way. | |||||
* | Log after displaying the message | Michael Vetter | 2020-04-08 | 1 | -6/+6 | |
| | | | | | | | | Otherwise we print the freshly received message to the window twice. Once when receiving (and immediately printing), then logging it, and then again when we print the last 10 log entries. Fix https://github.com/profanity-im/profanity/issues/1305 | |||||
* | Downgrade dependencies | Michael Vetter | 2020-04-07 | 1 | -2/+8 | |
| | | | | | | | | | | | Use g_date_time_format() instead of g_date_time_format_iso8601() to only rely on glib 2.56.0 which is the latest version in Debian Buster (current stable). We also only use basic sqlite functions so 3.27.0 should be fine there (also the one in Debian buster). Thanks to @DebXWoody. | |||||
* | Add missing includes | Michael Vetter | 2020-04-06 | 1 | -0/+3 | |
| | ||||||
* | Fix comment | Michael Vetter | 2020-04-06 | 1 | -1/+1 | |
| | ||||||
* | Add hint about future ProfMessage Id needs | Michael Vetter | 2020-04-06 | 1 | -0/+1 | |
| | ||||||
* | Add comment what id is about | Michael Vetter | 2020-04-06 | 1 | -0/+1 | |
| | ||||||
* | db: actually display the last 10 entries in correct order | Michael Vetter | 2020-04-06 | 1 | -1/+1 | |
| | ||||||
* | db: get last messages sorted by timestamp | Michael Vetter | 2020-04-06 | 1 | -1/+1 | |
| | ||||||
* | db: Use type from message struct instead of having individual functions | Michael Vetter | 2020-04-06 | 3 | -85/+87 | |
| | ||||||
* | Add type field to ProfMessage | Michael Vetter | 2020-04-06 | 4 | -14/+27 | |
| | | | | The mucuser boolean is not now needed anymore. | |||||
* | db: Fix memleaks | Michael Vetter | 2020-04-06 | 2 | -2/+2 | |
| | ||||||
* | Add sql to error log | Michael Vetter | 2020-04-06 | 1 | -2/+2 | |
| | | | | so we can more easily grep for it. | |||||
* | win_print_history() print 'me' on regular chats if we wrote the message | Michael Vetter | 2020-04-06 | 1 | -1/+9 | |
| | | | | Same behaviour like when we used to get it from the text files. | |||||
* | Adapt win_print_history() to work with muc too | Michael Vetter | 2020-04-06 | 5 | -24/+27 | |
| | ||||||
* | Remove chat_log_get_previous() | Michael Vetter | 2020-04-06 | 5 | -59/+6 | |
| | | | | | | | | | | | | 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 backend | Michael Vetter | 2020-04-06 | 3 | -21/+53 | |
| | ||||||
* | db: log encryption type | Michael Vetter | 2020-04-06 | 1 | -2/+19 | |
| | ||||||
* | db: log "to" resource | Michael Vetter | 2020-04-06 | 1 | -8/+8 | |
| | ||||||
* | db: log "from" resource | Michael Vetter | 2020-04-06 | 1 | -6/+7 | |
| | ||||||
* | Fix copy paste error | Michael Vetter | 2020-04-06 | 1 | -1/+1 | |
| | ||||||
* | db: dont log reflected MUC messages | Michael Vetter | 2020-04-06 | 1 | -1/+1 | |
| | ||||||
* | db: log all incoming and outgoing messages | Michael Vetter | 2020-04-06 | 6 | -25/+64 | |
| | ||||||
* | db: log outgoing message in one case | Michael Vetter | 2020-04-06 | 3 | -11/+46 | |
| | | | | Not all cases covered yet. | |||||
* | db: add dedicated chat, muc, muc pm logging functions | Michael Vetter | 2020-04-06 | 3 | -9/+30 | |
| | ||||||
* | Rename PROF_MSG_ENC_PLAIN to PROF_MSG_ENC_NONE | Michael Vetter | 2020-04-06 | 6 | -23/+23 | |
| | ||||||
* | db: insert message type | Michael Vetter | 2020-04-06 | 3 | -11/+22 | |
| | ||||||
* | db: add more needed fields | Michael Vetter | 2020-04-06 | 1 | -7/+20 | |
| | | | | DB fields should be complete now. | |||||
* | db: make id autoincrement | Michael Vetter | 2020-04-06 | 1 | -1/+1 | |
| | ||||||
* | db: fix inserting null in database | Michael Vetter | 2020-04-06 | 1 | -1/+1 | |
| | ||||||
* | db: log replace id | Michael Vetter | 2020-04-06 | 1 | -3/+3 | |
| | ||||||
* | db: use goto in error case | Michael Vetter | 2020-04-06 | 1 | -24/+13 | |
| | ||||||
* | db: add db version | Michael Vetter | 2020-04-06 | 1 | -1/+25 | |
| | | | | so we can later migrate. | |||||
* | db: move includes | Michael Vetter | 2020-04-06 | 3 | -7/+8 | |
| | ||||||
* | db: guard against no DB | Michael Vetter | 2020-04-06 | 1 | -2/+10 | |
| | | | | | | | | Maybe if we only use `/connect` we dont have ProfAccount. In that case we won't log anything. Only if a account is used we log. If this is the case or the init of the db didn't work we still want profanity to run but wont log anything to the db. | |||||
* | db: Have one database per account | Michael Vetter | 2020-04-06 | 7 | -25/+47 | |
| |