Verified Commit 079487a8 authored by Alexander Akulich's avatar Alexander Akulich
Browse files

TextChannelApprover: Don't show notification if the message is already read

parent 8d0cdcd3
......@@ -55,6 +55,10 @@ void TextChannelApprover::onMessageReceived(const Tp::ReceivedMessage & msg)
if (msg.isDeliveryReport()) {
return;
}
if (msg.deliveryDetails().status() == Tp::DeliveryStatusRead) {
// The message is already read; nothing to notify about.
return;
}
if (!m_notification) {
m_notification = new KNotification("new_text_message", 0, KNotification::Persistent);
......
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