From 5ecfb0b6204481e9ca4ed1af09ce22ff4591c1e3 Mon Sep 17 00:00:00 2001 From: iximeow Date: Mon, 15 Jan 2018 14:18:23 -0800 Subject: add flag to translate emoji to/from a description right now only handles :thinking: and :clap:, toggled by translate_emoji in profile.json --- src/tw/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tw') diff --git a/src/tw/mod.rs b/src/tw/mod.rs index 63b8f07..4aa0365 100644 --- a/src/tw/mod.rs +++ b/src/tw/mod.rs @@ -136,6 +136,8 @@ pub struct TwitterCache { pub profiles: HashMap, mutes: MuteInfo, threads: HashMap, // thread : latest_tweet_in_thread + #[serde(default = "bool::default")] + pub translate_emoji: bool, #[serde(skip)] pub needs_save: bool, #[serde(skip)] @@ -668,6 +670,7 @@ impl TwitterCache { // have one channel up per twitter stream... curr_profile: None, profiles: HashMap::new(), + translate_emoji: false, needs_save: false, caching_permitted: true, threads: HashMap::new(), -- cgit v1.1