Commit 2bb23cf8 authored by kaniini's avatar kaniini

account: don't firehose ourselves

parent 2c4c33fc
......@@ -618,8 +618,12 @@ QWebSocket *Account::streamingSocket(QString stream)
if (event == "update")
{
QJsonDocument doc = QJsonDocument::fromJson(env.object()["payload"].toString().toLocal8Bit());
handleUpdate(doc, target_tl);
auto account_obj = doc.object()["account"].toObject ();
if (account_obj["acct"] == m_identity.m_acct)
return;
handleUpdate(doc, target_tl);
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment