1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
Go to file
Michael Vetter 4ecd4dea6a Replace sent_messages list with algo
For OMEMO we had a list with our sent messages.
It was used so that we don't decrypt our own messages in MUCs that come
in via reflection.

Recently for https://github.com/profanity-im/profanity/pull/1209 we
started to use origin-id and use an algorithm so we can detect our own
sent messages via checking origin-id.

Profanity uses the same id for the message ID and origin-id.

With 06f300a42c we added the
message_is_sent_by_us() function.

We implemented XEP-0359 this way to fix
https://github.com/profanity-im/profanity/issues/1201 so that we don't
log our own messages in MUCs twice.

We can now check whether the message was sent by us using this function
and can get rid of the list.

Probably we could also put many parts of the sv_ev_room_message()
function inside (else) part of `if (!(g_strcmp0(mynick,
message->jid->resourcepart) == 0 && message_is_sent_by_us(message))) {`.

Have to look more closely whether any of this needs to be run in case
the message actually comes from us.
2019-10-31 12:56:48 +01:00
.github Dont allow new issues 2019-10-22 11:13:41 +02:00
apidocs Update copyright 2018-01-21 15:00:02 +00:00
docs Possibility to specify alternative config file 2019-08-02 15:55:47 +02:00
icons better, final icons 2016-03-09 12:55:57 +01:00
src Replace sent_messages list with algo 2019-10-31 12:56:48 +01:00
tests Adjust message stubs in unit tests 2019-10-29 11:55:27 +01:00
themes Make forest theme more readable 2019-10-22 15:10:55 +02:00
.gitignore Update plugin API docs 2016-08-02 23:17:28 +01:00
.travis.yml Add Travis CI tests for Arch, Debian and OSX/macOS 2019-06-06 13:58:26 +02:00
bootstrap.sh Add Travis CI tests for Arch, Debian and OSX/macOS 2019-06-06 13:58:26 +02:00
Brewfile.travis Add cmocka to brewfile 2019-07-18 09:07:57 +02:00
CHANGELOG Fix typo 2019-09-24 12:37:00 +02:00
configure-debug Include python plugins by default in build 2016-07-24 01:34:02 +01:00
configure-plugins Added python plugins code 2016-02-24 00:31:55 +00:00
configure.ac Adjust tray configure switch to also include clipboard 2019-10-29 15:20:57 +01:00
CONTRIBUTING.md Add CONTRIBUTING.md 2019-07-23 09:25:17 +02:00
COPYING Added GPL 2012-02-20 20:07:38 +00:00
Dockerfile.arch Add Travis CI tests for Arch, Debian and OSX/macOS 2019-06-06 13:58:26 +02:00
Dockerfile.debian Add Travis CI tests for Arch, Debian and OSX/macOS 2019-06-06 13:58:26 +02:00
Dockerfile.tumbleweed Add Travis CI tests for Arch, Debian and OSX/macOS 2019-06-06 13:58:26 +02:00
LICENSE.txt Update copyright years 2019-04-24 01:08:38 +02:00
Makefile.am Adjust tray configure switch to also include clipboard 2019-10-29 15:20:57 +01:00
prof.supp Dirty fix libgcrypt memleak 2019-07-11 14:25:42 +02:00
profanity.spec Update version in spec file 2019-09-30 19:17:07 +02:00
profrc.example Added example profrc config 2014-06-29 22:58:33 +01:00
README.md Update travis URL 2019-05-03 10:59:39 +02:00
RELEASE_GUIDE.md Update website info in release guide 2019-07-31 12:02:09 +02:00
theme_template Add option to hilight unread rooms in /wins command 2019-10-12 13:03:14 +02:00
travis-build.sh travis: show log in case make check failed 2019-10-10 19:10:55 +02:00

Profanity Build Status

Profanity is a console based XMPP client inspired by Irssi,

alt tag

See the User Guide for information on installing and using Profanity.

Homepage: https://profanity-im.github.io/

Mailing List: https://groups.google.com/forum/#!forum/profanitydev

MUC: profanity@rooms.dismail.de

Plugins repository: https://github.com/profanity-im/profanity-plugins