https://bugs.kde.org/show_bug.cgi?id=435409
--- Comment #11 from Angel Docampo <docampo.an...@gmail.com> --- like this? bool RocketChatAccount::isMessageDeletable(const Message &message) const { if (!allowMessageDeletingEnabled()) { return false; } if (hasPermission(QStringLiteral("force-delete-message"))) { return true; } if (hasPermission(QStringLiteral("delete-message"))) { return true; } if (message.userId() != userId()) { return false; } if (ruqolaServerConfig()->blockDeletingMessageInMinutes() == 0) { // TODO verify it return true; } qDebug() << " message.userId() " << message.userId() << " userId() " << userId(); return (message.timeStamp() + ruqolaServerConfig()->blockDeletingMessageInMinutes() * 60 * 1000) > QDateTime::currentMSecsSinceEpoch(); } -- You are receiving this mail because: You are watching all bug changes.