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
2019-10-22 11:13:41 +02:00
2018-01-21 15:00:02 +00:00
2016-03-09 12:55:57 +01:00
2019-10-31 12:56:48 +01:00
2019-10-29 11:55:27 +01:00
2019-10-22 15:10:55 +02:00
2016-08-02 23:17:28 +01:00
2019-07-18 09:07:57 +02:00
2019-09-24 12:37:00 +02:00
2016-02-24 00:31:55 +00:00
2019-07-23 09:25:17 +02:00
2012-02-20 20:07:38 +00:00
2019-04-24 01:08:38 +02:00
2019-07-11 14:25:42 +02:00
2019-09-30 19:17:07 +02:00
2014-06-29 22:58:33 +01:00
2019-05-03 10:59:39 +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

Description
Mirror of the CProof repository. Used for backward compatibility. Please use https://git.jabber.space/devs/cproof for Issues, Pull Requests and any other interactions.
Readme 38 MiB
Languages
C 95.2%
Python 1.7%
Makefile 0.9%
M4 0.8%
Shell 0.7%
Other 0.6%