about summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Log after displaying the messageMichael Vetter2020-04-081-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
* travis: enable osx againMichael Vetter2020-04-071-7/+7
| | | | | | | Seems like homebrew reverted their pkgconfig change for now. So finding gio should work again. Regards https://github.com/profanity-im/profanity/issues/1302
* Update dependencies in spec filesMichael Vetter2020-04-071-2/+6
|
* Update database stubMichael Vetter2020-04-071-3/+1
|
* Downgrade dependenciesMichael Vetter2020-04-072-6/+12
| | | | | | | | | | | 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.
* Require at least glib 2.62.Michael Vetter2020-04-061-2/+2
| | | | g_date_time_format_iso8601() is only in glib since 2.62.
* Add missing includesMichael Vetter2020-04-061-0/+3
|
* Require only sqlite 3.28.0Michael Vetter2020-04-061-2/+2
| | | | | We don't need newer features and so it runs on Leap 15.1 too. Let's see what Debian etc. need.
* Fix commentMichael Vetter2020-04-061-1/+1
|
* travis: disable osx buildMichael Vetter2020-04-061-7/+7
| | | | As long as brew has some problem: https://github.com/profanity-im/profanity/issues/1302
* Merge pull request #1282 from profanity-im/feature/sqlite-logMichael Vetter2020-04-0627-148/+578
|\ | | | | SQLite backend
| * Add hint about future ProfMessage Id needsMichael Vetter2020-04-061-0/+1
| |
| * Add comment what id is aboutMichael Vetter2020-04-061-0/+1
| |
| * db: actually display the last 10 entries in correct orderMichael Vetter2020-04-061-1/+1
| |
| * db: get last messages sorted by timestampMichael Vetter2020-04-061-1/+1
| |
| * db: Use type from message struct instead of having individual functionsMichael Vetter2020-04-063-85/+87
| |
| * Add type field to ProfMessageMichael Vetter2020-04-064-14/+27
| | | | | | | | The mucuser boolean is not now needed anymore.
| * db: Fix memleaksMichael Vetter2020-04-062-2/+2
| |
| * Add sql to error logMichael Vetter2020-04-061-2/+2
| | | | | | | | so we can more easily grep for it.
| * win_print_history() print 'me' on regular chats if we wrote the messageMichael Vetter2020-04-061-1/+9
| | | | | | | | Same behaviour like when we used to get it from the text files.
| * Adapt win_print_history() to work with muc tooMichael Vetter2020-04-065-24/+27
| |
| * Remove chat_log_get_previous()Michael Vetter2020-04-066-64/+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 backendMichael Vetter2020-04-063-21/+53
| |
| * db: log encryption typeMichael Vetter2020-04-061-2/+19
| |
| * db: log "to" resourceMichael Vetter2020-04-061-8/+8
| |
| * db: log "from" resourceMichael Vetter2020-04-061-6/+7
| |
| * Fix copy paste errorMichael Vetter2020-04-061-1/+1
| |
| * Add log_database_add_*() test stubsMichael Vetter2020-04-061-1/+6
| |
| * Fix message_send_private unittest stubMichael Vetter2020-04-061-1/+6
| |
| * db: dont log reflected MUC messagesMichael Vetter2020-04-061-1/+1
| |
| * db: log all incoming and outgoing messagesMichael Vetter2020-04-066-25/+64
| |
| * db: log outgoing message in one caseMichael Vetter2020-04-063-11/+46
| | | | | | | | Not all cases covered yet.
| * db: add dedicated chat, muc, muc pm logging functionsMichael Vetter2020-04-063-9/+30
| |
| * Rename PROF_MSG_ENC_PLAIN to PROF_MSG_ENC_NONEMichael Vetter2020-04-066-23/+23
| |
| * db: insert message typeMichael Vetter2020-04-063-11/+22
| |
| * db: add more needed fieldsMichael Vetter2020-04-061-7/+20
| | | | | | | | DB fields should be complete now.
| * db: make id autoincrementMichael Vetter2020-04-061-1/+1
| |
| * db: fix inserting null in databaseMichael Vetter2020-04-061-1/+1
| |
| * db: log replace idMichael Vetter2020-04-061-3/+3
| |
| * db: use goto in error caseMichael Vetter2020-04-061-24/+13
| |
| * db: add db versionMichael Vetter2020-04-061-1/+25
| | | | | | | | so we can later migrate.
| * db: add database unit test stubMichael Vetter2020-04-062-0/+32
| |
| * db: move includesMichael Vetter2020-04-063-7/+8
| |
| * db: guard against no DBMichael Vetter2020-04-061-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 accountMichael Vetter2020-04-067-25/+47
| |
| * Add sqlite to CI dependenciesMichael Vetter2020-04-066-3/+9
| |
| * database: dont log muc pmsMichael Vetter2020-04-061-2/+0
| |
| * database: log stanza_id and whether it is a muc messageMichael Vetter2020-04-063-13/+13
| |
| * Add timestamp for incoming messages if none is setMichael Vetter2020-04-061-0/+6
| | | | | | | | | | | | | | | | Timestamps are only set if a message is delayed. If none is set let's set it upon recaival so we don't have to set it when it gets displayed. This means we will also have it for logs etc in the ProfMessage.
| * database: log incoming messagesMichael Vetter2020-04-063-0/+40
| | | | | | | | First trial. Not covering all cases yet.