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