mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Support markdown and replaces in media captions.
This commit is contained in:
@@ -711,4 +711,14 @@ DefineRefVar(Global, base::Variable<DBIWorkMode>, WorkMode);
|
||||
DefineRefVar(Global, base::Observable<void>, UnreadCounterUpdate);
|
||||
DefineRefVar(Global, base::Observable<void>, PeerChooseCancel);
|
||||
|
||||
rpl::producer<bool> ReplaceEmojiValue() {
|
||||
return rpl::single(
|
||||
Global::ReplaceEmoji()
|
||||
) | rpl::then(base::ObservableViewer(
|
||||
Global::RefReplaceEmojiChanged()
|
||||
) | rpl::map([] {
|
||||
return Global::ReplaceEmoji();
|
||||
}));
|
||||
}
|
||||
|
||||
} // namespace Global
|
||||
|
Reference in New Issue
Block a user