@@ -155,6 +155,7 @@ class PerAccountStore extends ChangeNotifier {
155
155
}) : zulipVersion = initialSnapshot.zulipVersion,
156
156
maxFileUploadSizeMib = initialSnapshot.maxFileUploadSizeMib,
157
157
realmDefaultExternalAccounts = initialSnapshot.realmDefaultExternalAccounts,
158
+ realmEmoji = initialSnapshot.realmEmoji,
158
159
customProfileFields = _sortCustomProfileFields (initialSnapshot.customProfileFields),
159
160
userSettings = initialSnapshot.userSettings,
160
161
unreads = Unreads (initial: initialSnapshot.unreadMsgs, selfUserId: account.userId),
@@ -181,6 +182,7 @@ class PerAccountStore extends ChangeNotifier {
181
182
final String zulipVersion; // TODO get from account; update there on initial snapshot
182
183
final int maxFileUploadSizeMib; // No event for this.
183
184
final Map <String , RealmDefaultExternalAccount > realmDefaultExternalAccounts;
185
+ Map <String , RealmEmojiItem > realmEmoji;
184
186
List <CustomProfileField > customProfileFields;
185
187
186
188
// Data attached to the self-account on the realm.
@@ -228,6 +230,10 @@ class PerAccountStore extends ChangeNotifier {
228
230
void handleEvent (Event event) {
229
231
if (event is HeartbeatEvent ) {
230
232
assert (debugLog ("server event: heartbeat" ));
233
+ } else if (event is RealmEmojiUpdateEvent ) {
234
+ assert (debugLog ("server event: realm_emoji/update" ));
235
+ realmEmoji = event.realmEmoji;
236
+ notifyListeners ();
231
237
} else if (event is AlertWordsEvent ) {
232
238
assert (debugLog ("server event: alert_words" ));
233
239
// We don't yet store this data, so there's nothing to update.
0 commit comments