Commit ed132c6e40
Unsigned
Layout: unified · split
src/room_buffer.rs −4
| @@ -96,11 +96,9 @@ pub struct MatrixRoom { | ||
| 96 | 96 | homeserver: Rc<Url>, |
| 97 | 97 | room_id: Rc<RoomId>, |
| 98 | 98 | connection: Rc<RefCell<Option<Connection>>>, |
| 99 | prev_batch: Rc<RefCell<Option<String>>>, | |
| 100 | 99 | typing_notice_time: Rc<RefCell<Option<Instant>>>, |
| 101 | 100 | room: Rc<RefCell<Room>>, |
| 102 | 101 | members: HashMap<UserId, WeechatRoomMember>, |
| 103 | printed_before_ack_queue: Rc<RefCell<Vec<String>>>, | |
| 104 | 102 | } |
| 105 | 103 | |
| 106 | 104 | #[async_trait(?Send)] |
| @@ -149,11 +147,9 @@ impl RoomBuffer { | ||
| 149 | 147 | homeserver: Rc::new(homeserver.clone()), |
| 150 | 148 | room_id: Rc::new(room_id.clone()), |
| 151 | 149 | connection: connection.clone(), |
| 152 | prev_batch: Rc::new(RefCell::new(None)), | |
| 153 | 150 | typing_notice_time: Rc::new(RefCell::new(None)), |
| 154 | 151 | room: Rc::new(RefCell::new(Room::new(&room_id, &own_user_id))), |
| 155 | 152 | members: HashMap::new(), |
| 156 | printed_before_ack_queue: Rc::new(RefCell::new(Vec::new())), | |
| 157 | 153 | }; |
| 158 | 154 | |
| 159 | 155 | let buffer_handle = BufferBuilderAsync::new(&room_id.to_string()) |