From e7191f5d57876779c242280b8fc9f9cfa1c05a5a Mon Sep 17 00:00:00 2001 From: Sarah Jamie Lewis Date: Tue, 23 Nov 2021 14:54:06 -0800 Subject: [PATCH] comments --- peer/cwtchprofilestorage.go | 1 + 1 file changed, 1 insertion(+) diff --git a/peer/cwtchprofilestorage.go b/peer/cwtchprofilestorage.go index b9ea334..fe2fe70 100644 --- a/peer/cwtchprofilestorage.go +++ b/peer/cwtchprofilestorage.go @@ -681,6 +681,7 @@ func (cps *CwtchProfileStorage) GetMostRecentMessages(conversation int, channel } } +// PurgeConversationChannel deletes all message for a conversation channel. func (cps *CwtchProfileStorage) PurgeConversationChannel(conversation int, channel int) error { conversationStmt, err := cps.db.Prepare(fmt.Sprintf(purgeMessagesFromConversationSQLStmt, conversation, channel)) if err != nil {