Skip to content

Commit

Permalink
Merge pull request #24 from ValdikSS/otr-groupchat-ignore
Browse files Browse the repository at this point in the history
Ignore OTR messages in group chat.
  • Loading branch information
Ri0n authored Oct 4, 2017
2 parents 845bcbc + 07e6c39 commit 8af8e9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generic/otrplugin/src/psiotrplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ bool PsiOtrPlugin::processEvent(int accountIndex, QDomElement& e)

if (m_enabled && e.attribute("type") == "MessageEvent" &&
!messageElement.isNull() &&
messageElement.attribute("type") != "error")
messageElement.attribute("type") != "error" &&
messageElement.attribute("type") != "groupchat")
{
QString contact = getCorrectJid(accountIndex,
messageElement.attribute("from"));
Expand Down

0 comments on commit 8af8e9e

Please # to comment.