<@U25U0KPFT> just now got the time to reveal the c...
# tornadofx
c
@carlw just now got the time to reveal the code, another awesome snippet but question was misunderstood 😞 The Problem is not fetching, I’ll try to explain: I’m typing some text in
textfield
, on finish I press`send` button it sends
post
request to the server, which responds with generated
id
(which isn’t incremented as {1, 2, 3, 4, 5) and other details But I don’t want to wait for respond (which can take, for example, 1 second), I wanna show this message in list with others, but with some status indicator (like a progress circle on right, or if there was an issue with sending - something that indicates it). So, to show this in list with existing messages, I need to create an object, but I don’t have real
msg id
so the only solution I have is to create it with
null
id
and other fake details, after then on respond I’ll need to replace it with real ones. Actually, I hate this idea, if I’m sending
message
with turned off wifi and, for example, it takes long enough to get respond - switching views would cause in loosing this
message