about summary refs log tree commit diff stats
path: root/src/database.h
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearMichael Vetter2023-01-101-1/+1
|
* Have ability to scroll through history even without MAMMarcoPolo-PasTonMolo2022-07-101-1/+1
|
* Fix initial MAM not displayingMarcoPolo-PasTonMolo2022-07-051-1/+3
| | | | | | 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-1/+1
|
* On new chatwin fetch mam according to guidelines.MarcoPolo-PasTonMolo2022-07-031-0/+1
| | | | | Taken from here: https://github.com/modernxmpp/modernxmpp/commit/cd3e871e55c2cff45dffd05d6e50380b99845849
* Update copyright yearMichael Vetter2022-05-091-1/+1
|
* Apply coding styleMichael Vetter2020-07-071-7/+6
|
* Revert "Apply coding style"Michael Vetter2020-07-071-7/+8
| | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems.
* Apply coding styleMichael Vetter2020-07-071-8/+7
| | | | Regards https://github.com/profanity-im/profanity/issues/1396
* db: Use type from message struct instead of having individual functionsMichael Vetter2020-04-061-3/+1
|
* Remove chat_log_get_previous()Michael Vetter2020-04-061-1/+1
| | | | | | | | | | | | 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-0/+1
|
* db: log all incoming and outgoing messagesMichael Vetter2020-04-061-1/+3
|
* db: log outgoing message in one caseMichael Vetter2020-04-061-0/+1
| | | | Not all cases covered yet.
* db: add dedicated chat, muc, muc pm logging functionsMichael Vetter2020-04-061-1/+3
|
* db: insert message typeMichael Vetter2020-04-061-1/+1
|
* db: move includesMichael Vetter2020-04-061-2/+6
|
* db: Have one database per accountMichael Vetter2020-04-061-1/+1
|
* database: log stanza_id and whether it is a muc messageMichael Vetter2020-04-061-1/+1
|
* database: log incoming messagesMichael Vetter2020-04-061-0/+1
| | | | First trial. Not covering all cases yet.
* Start SQLite db moduleMichael Vetter2020-04-061-0/+43
I plan to save all messages in an SQLite db. For retrieving information it's nicer than having it in a text file. We will have more info in there and easier to parse it. This will also be good for later MAM (https://github.com/profanity-im/profanity/issues/660). Regular text files will still be an option for users so that they can easily grep them and do whatever they like. Internally Profanity will only use the SQLite db.