From 47c26818d6cd1545540e44d3475278a6a4296a77 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Tue, 30 Jul 2024 09:29:32 +0000 Subject: [chore] add some more slice related utility functions + remove duplicated functions (#3149) --- internal/gtsmodel/conversation.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/gtsmodel') diff --git a/internal/gtsmodel/conversation.go b/internal/gtsmodel/conversation.go index f03f27458..d17cbe6fe 100644 --- a/internal/gtsmodel/conversation.go +++ b/internal/gtsmodel/conversation.go @@ -62,7 +62,7 @@ type Conversation struct { // ConversationOtherAccountsKey creates an OtherAccountsKey from a list of OtherAccountIDs. func ConversationOtherAccountsKey(otherAccountIDs []string) string { - otherAccountIDs = util.UniqueStrings(otherAccountIDs) + otherAccountIDs = util.Deduplicate(otherAccountIDs) slices.Sort(otherAccountIDs) return strings.Join(otherAccountIDs, ",") } -- cgit v1.3