diff --git a/xwords4/relay/dbmgr.cpp b/xwords4/relay/dbmgr.cpp index 71914ef8c..cbfe79b3f 100644 --- a/xwords4/relay/dbmgr.cpp +++ b/xwords4/relay/dbmgr.cpp @@ -1042,6 +1042,12 @@ DBMgr::RemoveStoredMessages( vector& idv ) } } +void +DBMgr::RemoveStoredMessage( const int msgID ) +{ + RemoveStoredMessages( &msgID, 1 ); +} + int DBMgr::getCountWhere( const char* table, string& test ) { diff --git a/xwords4/relay/dbmgr.h b/xwords4/relay/dbmgr.h index 2a1995c39..ae79335c2 100644 --- a/xwords4/relay/dbmgr.h +++ b/xwords4/relay/dbmgr.h @@ -121,6 +121,7 @@ class DBMgr { vector& msgs ); void RemoveStoredMessages( const int* msgID, int nMsgIDs ); + void RemoveStoredMessage( const int msgID ); void RemoveStoredMessages( vector& ids ); private: