diff options
author | louiz’ <louiz@louiz.org> | 2020-09-23 23:38:46 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2020-09-23 23:38:46 +0200 |
commit | 9cb6a0c2c927a857d502fd06212afac91a4f2079 (patch) | |
tree | c0b505a9d2f2755d961f4b72c0bd655a747589c2 /src/xmpp | |
parent | 9a90c76eba79d5854e4ce47691f802bcdbf6c9ca (diff) | |
download | biboumi-9cb6a0c2c927a857d502fd06212afac91a4f2079.tar.gz biboumi-9cb6a0c2c927a857d502fd06212afac91a4f2079.tar.bz2 biboumi-9cb6a0c2c927a857d502fd06212afac91a4f2079.tar.xz biboumi-9cb6a0c2c927a857d502fd06212afac91a4f2079.zip |
Entirely remove the code for the “preferred_from” nick
Since private messages are now always coming from the server-wide JIDs
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/biboumi_component.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp index f49b3b6..6e579cc 100644 --- a/src/xmpp/biboumi_component.cpp +++ b/src/xmpp/biboumi_component.cpp @@ -360,7 +360,6 @@ void BiboumiComponent::handle_message(const Stanza& stanza) if (iid.type == Iid::Type::User && !iid.get_local().empty()) { bridge->send_private_message(iid, body->get_inner()); - bridge->remove_preferred_from_jid(iid.get_local()); } else if (iid.type != Iid::Type::User && !to.resource.empty()) { // a message for chan%server@biboumi/Nick or @@ -368,7 +367,6 @@ void BiboumiComponent::handle_message(const Stanza& stanza) // Convert that into a message to nick!server Iid user_iid(utils::tolower(to.resource), iid.get_server(), Iid::Type::User); bridge->send_private_message(user_iid, body->get_inner()); - bridge->set_preferred_from_jid(user_iid.get_local(), to_str); } else if (iid.type == Iid::Type::Server) bridge->send_raw_message(iid.get_server(), body->get_inner()); |