diff --git a/src/mumble/Database.cpp b/src/mumble/Database.cpp index 0768182b26d..fc366530a17 100644 --- a/src/mumble/Database.cpp +++ b/src/mumble/Database.cpp @@ -399,6 +399,12 @@ void Database::setLocalMuted(const QString &hash, bool muted) { execQueryAndLogFailure(query); } +void Database::clearLocalMuted() { + QSqlQuery query(db); + query.prepare(QLatin1String("DELETE FROM `muted`")); + execQueryAndLogFailure(query); +} + ChannelFilterMode Database::getChannelFilterMode(const QByteArray &server_cert_digest, const unsigned int channel_id) { QSqlQuery query(db); diff --git a/src/mumble/Database.h b/src/mumble/Database.h index c5643deeb3f..c57110c99c2 100644 --- a/src/mumble/Database.h +++ b/src/mumble/Database.h @@ -48,6 +48,7 @@ class Database : public QObject { bool isLocalMuted(const QString &hash); void setLocalMuted(const QString &hash, bool muted); + void clearLocalMuted(); float getUserLocalVolume(const QString &hash); void setUserLocalVolume(const QString &hash, float volume); diff --git a/src/mumble/main.cpp b/src/mumble/main.cpp index be28b37cf8e..204b9c4a077 100644 --- a/src/mumble/main.cpp +++ b/src/mumble/main.cpp @@ -658,6 +658,7 @@ int main(int argc, char **argv) { // Initialize database Global::get().db = new Database(QLatin1String("main")); + Global::get().db->clearLocalMuted(); #ifdef USE_ZEROCONF // Initialize zeroconf