[frontend/components] Don't get emojis until opening compose
This commit is contained in:
parent
ac47bafffd
commit
41001ce0eb
1 changed files with 3 additions and 1 deletions
|
@ -382,6 +382,9 @@
|
||||||
TextPlaceholder = AvailablePlaceholders["default"];
|
TextPlaceholder = AvailablePlaceholders["default"];
|
||||||
SendButton.State = StateButton.StateEnum.Initial;
|
SendButton.State = StateButton.StateEnum.Initial;
|
||||||
AttachedQuote = null;
|
AttachedQuote = null;
|
||||||
|
|
||||||
|
if (EmojiList.Count == 0)
|
||||||
|
EmojiList = await EmojiService.GetEmojiAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task CloseDialog()
|
private async Task CloseDialog()
|
||||||
|
@ -503,7 +506,6 @@
|
||||||
{
|
{
|
||||||
_module = await Js.InvokeAsync<IJSObjectReference>("import",
|
_module = await Js.InvokeAsync<IJSObjectReference>("import",
|
||||||
"./Components/Compose.razor.js");
|
"./Components/Compose.razor.js");
|
||||||
EmojiList = await EmojiService.GetEmojiAsync();
|
|
||||||
|
|
||||||
var instance = await MetadataService.Instance.Value;
|
var instance = await MetadataService.Instance.Value;
|
||||||
NoteLength = instance.Limits.NoteLength;
|
NoteLength = instance.Limits.NoteLength;
|
||||||
|
|
Loading…
Add table
Reference in a new issue