diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-02-10 16:17:01 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-02-10 16:17:01 +0100 |
commit | 11181100712fc2a1c2f310b4470d752488e8961e (patch) | |
tree | cd5b5341d86e48e7df09c6bfc9414dfc296144ca /src/ui/window.c | |
parent | 83b61e5160b6624eb0b2898c1321d33341e6510c (diff) | |
download | profani-tty-11181100712fc2a1c2f310b4470d752488e8961e.tar.gz |
xep-0308: Implement `/correct` to correct the last send message
So far the correction is sent. But the UI in Profanity itself is not updated. Also autocompletion for `/correct` with the last sent message is missing.
Diffstat (limited to 'src/ui/window.c')
-rw-r--r-- | src/ui/window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 339f4456..c668bd34 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -152,6 +152,8 @@ win_create_chat(const char *const barejid) new_win->enctext = NULL; new_win->incoming_char = NULL; new_win->outgoing_char = NULL; + new_win->last_message = NULL; + new_win->last_msg_id = NULL; new_win->memcheck = PROFCHATWIN_MEMCHECK; @@ -488,6 +490,8 @@ win_free(ProfWin* window) free(chatwin->enctext); free(chatwin->incoming_char); free(chatwin->outgoing_char); + free(chatwin->last_message); + free(chatwin->last_msg_id); chat_state_free(chatwin->state); break; } |