Skip to content
Snippets Groups Projects

fix for latest client release

Merged Jake Taylor requested to merge release into master
2 files
+ 13
0
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 5
0
@@ -11,6 +11,7 @@ import (
"encoding/json"
"github.com/forPelevin/gomoji"
"github.com/pkg/errors"
jww "github.com/spf13/jwalterweatherman"
cEmoji "gitlab.com/elixxir/client/v4/emoji"
"strings"
)
@@ -54,9 +55,13 @@ func (s *Set) SanitizeEmojiMartSet(frontendEmojiSetJson []byte) ([]byte, error)
"failed to unmarshal emoji-mart set JSON: %+v", err)
}
jww.INFO.Printf("Finding incompatible emojis...")
// Find all incompatible emojis in the front end set
emojisToRemove := s.findIncompatibleEmojis(&frontEndEmojiSet)
jww.INFO.Printf("Removing incompatible emojis...")
// Remove all incompatible emojis from the set
removeIncompatibleEmojis(&frontEndEmojiSet, emojisToRemove)
Loading