Support sending and completing Emoji shortcodes in the message bar (#100)

This commit is contained in:
Ulyssa 2023-05-24 21:14:13 -07:00
parent 529073f4d4
commit 8d22b83d85
No known key found for this signature in database
GPG key ID: 1B3965A3D18B9B64
5 changed files with 83 additions and 5 deletions

View file

@ -42,6 +42,8 @@ use crate::{
worker::Requester,
};
const TEST_ROOM1_ALIAS: &str = "#room1:example.com";
lazy_static! {
pub static ref TEST_ROOM1_ID: OwnedRoomId = RoomId::new(server_name!("example.com")).to_owned();
pub static ref TEST_USER1: OwnedUserId = user_id!("@user1:example.com").to_owned();
@ -223,7 +225,8 @@ pub async fn mock_store() -> ProgramStore {
let room_id = TEST_ROOM1_ID.clone();
let info = mock_room();
store.rooms.insert(room_id, info);
store.rooms.insert(room_id.clone(), info);
store.names.insert(TEST_ROOM1_ALIAS.to_string(), room_id);
ProgramStore::new(store)
}