| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
|
|
|
|
| |
Some stuff just floods the log file. We only need this when debugging.
Others are useless without more info.
|
|\
| |
| | |
Free GError objects
|
|/
|
|
|
|
|
|
|
|
| |
glib functions can allocate a GError object that must be freed with
g_error_free(). Otherwise a memory leak happens.
There are similar unfixed places in omemo, check:
grep "&error" src/omemo/omemo.c
Fixes #1304.
|
|
|
|
|
|
|
|
|
|
|
| |
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 basic MAM support
|
| |
| |
| |
| | |
g_date_time_add_days() actually creates a new one.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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 ;)
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| |
| | |
Is usefult in many cases if we want cleaner code.
Hope this edit didn't break anything though ;-)
|
| | |
|
| | |
|
| |
| |
| |
| | |
Let's not crash :-)
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
|
|
| |
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()
|
|/ |
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| | |
Fix use-after-free in stanza_create_caps_from_query_element()
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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()
|
|/ |
|
|
|
|
|
|
|
| |
Last version in Ubuntu LTS (bionic 18.04).
I think we don't use later functionality. Let's see.
glib version fits.
|
|
|
|
| |
So we don't have to check for MUC another way.
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Seems like homebrew reverted their pkgconfig change for now.
So finding gio should work again.
Regards https://github.com/profanity-im/profanity/issues/1302
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
g_date_time_format_iso8601() is only in glib since 2.62.
|
| |
|
|
|
|
|
| |
We don't need newer features and so it runs on Leap 15.1 too.
Let's see what Debian etc. need.
|
| |
|
|
|
|
| |
As long as brew has some problem: https://github.com/profanity-im/profanity/issues/1302
|
|\
| |
| | |
SQLite backend
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
The mucuser boolean is not now needed anymore.
|
| | |
|
| |
| |
| |
| | |
so we can more easily grep for it.
|
| |
| |
| |
| | |
Same behaviour like when we used to get it from the text files.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|