Remove file ending

merge-requests/30/head
Bob Mottram 2022-04-18 22:13:08 +01:00
parent 814aa5275e
commit 9878d637fa
1 changed files with 2 additions and 0 deletions

View File

@ -325,6 +325,8 @@ def _save_custom_emoji(session, base_dir: str, emojiName: str, url: str,
def _update_common_emoji(base_dir: str, emoji_content: str) -> None:
"""Updates the list of commonly used emoji
"""
if '.' in emoji_content:
emoji_content = emoji_content.split('.')[0]
emoji_content = emoji_content.replace(':', '')
common_emoji_filename = base_dir + '/accounts/common_emoji.txt'
common_emoji = None