1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00
Commit Graph

5825 Commits

Author SHA1 Message Date
Michael Vetter
9278ba775b db: add more needed fields
DB fields should be complete now.
2020-04-06 10:50:20 +02:00
Michael Vetter
fe67102e71 db: make id autoincrement 2020-04-06 10:50:20 +02:00
Michael Vetter
c56443fea5 db: fix inserting null in database 2020-04-06 10:50:20 +02:00
Michael Vetter
dc0b7b5e91 db: log replace id 2020-04-06 10:50:20 +02:00
Michael Vetter
a5a53c52de db: use goto in error case 2020-04-06 10:50:20 +02:00
Michael Vetter
ac6a1222fc db: add db version
so we can later migrate.
2020-04-06 10:50:20 +02:00
Michael Vetter
062c7b1a89 db: add database unit test stub 2020-04-06 10:50:20 +02:00
Michael Vetter
4a7a0f3e76 db: move includes 2020-04-06 10:50:20 +02:00
Michael Vetter
1155963c6c db: guard against no DB
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.
2020-04-06 10:50:20 +02:00
Michael Vetter
11663625cc db: Have one database per account 2020-04-06 10:50:20 +02:00
Michael Vetter
672f3e22e8 Add sqlite to CI dependencies 2020-04-06 10:50:20 +02:00
Michael Vetter
71e872c5b8 database: dont log muc pms 2020-04-06 10:50:20 +02:00
Michael Vetter
5cc3b469a8 database: log stanza_id and whether it is a muc message 2020-04-06 10:50:20 +02:00
Michael Vetter
d1d0ad8d1a Add timestamp for incoming messages if none is set
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.
2020-04-06 10:50:20 +02:00
Michael Vetter
8045a32c4a database: log incoming messages
First trial. Not covering all cases yet.
2020-04-06 10:50:20 +02:00
Michael Vetter
a7163b24f3 database: Define chatlog database location 2020-04-06 10:50:20 +02:00
Michael Vetter
994411d470 database: create table 2020-04-06 10:50:20 +02:00
Michael Vetter
8bfb175d03 Start SQLite db module
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.
2020-04-06 10:50:20 +02:00
Michael Vetter
49057077b9
Merge pull request #1299 from profanity-im/memleaks
Fix few memory leaks
2020-04-06 10:39:32 +02:00
Dmitry Podgorny
42b6d78a70 Fix multiple memory leaks related to rosterwin_roster()
There are multiple paths which lead to rosterwin_roster(). The function
doesn't free list returned by wins_get_private_chats().
2020-04-06 14:29:21 +03:00
Dmitry Podgorny
ba291a03f4 Fix memory leak in cons_show_disco_info() 2020-04-06 13:29:36 +03:00
Michael Vetter
eb2165e0a4
Merge pull request #1298 from profanity-im/memleaks
Fix few memory leaks
2020-04-05 19:57:56 +02:00
Dmitry Podgorny
ded48a7e40 Fix memory leak in stanza_attach_correction()
xmpp_stanza_add_child() takes own reference to the child stanza.
Therefore we have to release our reference or the child is lost
and not freed otherwise.
2020-04-05 15:58:28 +03:00
Dmitry Podgorny
dc5ddb8ebe Fix memory leak in _rosterwin_resources() 2020-04-05 15:57:27 +03:00
Michael Vetter
23d79e6eac readme: add repos and urls 2020-04-05 00:13:38 +02:00
Michael Vetter
63b996a3b6 Add blog to readme
Many people seem to miss because they check only github and not the
website.
2020-04-05 00:10:43 +02:00
Michael Vetter
1cd9bfd2e7 Dont have account otr setting if built without otr 2020-04-03 01:37:25 +02:00
Michael Vetter
fd19b45a37
Merge pull request #1297 from profanity-im/memleak-mucwin
Fixed memory leak in ProfMucWin
2020-04-03 00:11:12 +02:00
Dmitry Podgorny
37c200571f Fixed memory leak in ProfMucWin
Profanity remembers last message and its id for the message correction
feature. We must free them in window destructor.
2020-04-03 01:47:38 +03:00
Michael Vetter
35edc56b1d Dont have otr autocompletion if build without otr support 2020-04-03 00:08:39 +02:00
Michael Vetter
b3f4a5a682 Dont have pgp autocompletion if build without pgp support 2020-04-03 00:06:17 +02:00
Michael Vetter
733d268e90 Dont even create OMEMO ac vars if we build without support 2020-04-03 00:02:21 +02:00
Michael Vetter
c57bd56655 Merge branch 'master' of github.com:profanity-im/profanity 2020-04-02 23:59:55 +02:00
Michael Vetter
df23c34611 Only have OMEMO autocompletion if we build with OEMO support 2020-04-02 23:59:21 +02:00
Michael Vetter
75a43f923f Fix omemo autocompletion mitake
Don't return too early. We still need to check for regular omemo
autocompletion (omemo_ac).
2020-04-02 23:57:06 +02:00
Michael Vetter
15e05d1706
Merge pull request #1296 from wstrm/ci-without-coreutils
Fallback for nproc for systems without GNU coreutils
2020-04-01 15:01:50 +02:00
William Wennerström
06f8299e7c
Fallback for nproc for systems without GNU coreutils 2020-04-01 14:21:12 +02:00
Michael Vetter
7eec3107fc
Merge pull request #1295 from wstrm/upgrade-docker
Use latest Docker in CI
2020-03-30 22:20:01 +02:00
William Wennerström
bec7189295
Use latest Docker in CI
Force a Docker upgrade for all Linux runners.

Fixes: #1294
2020-03-30 20:45:22 +02:00
Michael Vetter
6c17a36465 thanks travis..
Regards https://github.com/profanity-im/profanity/issues/1294
2020-03-30 15:19:10 +02:00
Michael Vetter
8a2fa7e8c1 travis: use bionic 2020-03-30 15:17:42 +02:00
Michael Vetter
cb755a5c84 Next travis try
https://github.com/profanity-im/profanity/issues/1294
2020-03-30 15:14:13 +02:00
Michael Vetter
1e2511eba4 Another try at docker
Regards https://github.com/profanity-im/profanity/issues/1294
2020-03-30 15:08:44 +02:00
Michael Vetter
8386cac8e7 Run docker in privileged mode
From https://docs.docker.com/engine/reference/run/:

```
When the operator executes docker run --privileged, Docker will enable
access to all devices on the host as well as set some configuration in
AppArmor or SELinux to allow the container nearly all the same access to
the host as processes running outside containers on the host.
```

Regards https://github.com/profanity-im/profanity/issues/1294
2020-03-30 14:43:29 +02:00
Michael Vetter
e88113afa1 os TW 20200325 test 2020-03-30 12:28:42 +02:00
Michael Vetter
67c0d11629 Test oS TW 20200324
Tests fail in TW image. Doesn't seem our fault.
Let's try to find out since when.
2020-03-30 12:16:46 +02:00
Michael Vetter
1bcfd4ece6 Remove 'use' from titlebar autocompletion
This was forgotten in f131680055.
2020-03-29 23:21:23 +02:00
Michael Vetter
89502ca199
Merge pull request #1292 from profanity-im/memleak-issue1279
Fix memory leak of presence object
2020-03-29 21:57:57 +02:00
Michael Vetter
c520c3d3c3 Fix edit mistake 2020-03-27 14:24:48 +01:00
Michael Vetter
53aa8d7cbf Upgrade examples 2020-03-26 15:55:19 +01:00