Insert euph messages into vault

This commit is contained in:
Joscha 2022-06-24 00:20:34 +02:00
parent d6821881f3
commit 72b531d216
2 changed files with 45 additions and 30 deletions

View file

@ -60,7 +60,9 @@ impl Ui {
Self::poll_crossterm_events(event_tx_clone, weak_crossterm_lock)
});
let chat = Chat::new(vault.euph("test".to_string()));
let room_vault = vault.euph("test".to_string());
let chat = Chat::new(room_vault.clone());
let room = euph::Room::new("test".to_string(), room_vault, event_tx.clone());
// Run main UI.
//
@ -75,7 +77,7 @@ impl Ui {
event_tx: event_tx.clone(),
vault,
visible: Visible::Log,
room: euph::Room::new("test".to_string()),
room,
chat,
log_chat: Chat::new(logger),
};