Add 'euph.rooms.<name>.username' config option

This commit is contained in:
Joscha 2022-08-25 23:03:33 +02:00
parent 6e6fddc0b1
commit d0ba210855
4 changed files with 21 additions and 1 deletions

View file

@ -102,7 +102,11 @@ impl EuphRoom {
if self.room.is_none() {
let store = self.chat.store().clone();
let name = store.room().to_string();
let (room, euph_room_event_rx) = euph::Room::new(store, self.config.password.clone());
let (room, euph_room_event_rx) = euph::Room::new(
store,
self.config.username.clone(),
self.config.password.clone(),
);
self.room = Some(room);