You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-31 13:44:28 +03:00
🧵 Enable threads by default (#9736)
* Delabs threads * remove threads reload when labs is toggled * Fix ts strict * fix rebase mistake * remove .only * fix pr comments * re-introduce backwards compat * Fix export test * Fix SearchREsultTile test * strict ts
This commit is contained in:
@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { mocked } from "jest-mock";
|
||||
import { MatrixClient } from "matrix-js-sdk/src/matrix";
|
||||
|
||||
import TypingStore from "../../src/stores/TypingStore";
|
||||
@ -31,10 +30,6 @@ jest.mock("../../src/settings/SettingsStore", () => ({
|
||||
describe("TypingStore", () => {
|
||||
let typingStore: TypingStore;
|
||||
let mockClient: MatrixClient;
|
||||
const settings = {
|
||||
sendTypingNotifications: true,
|
||||
feature_thread: false,
|
||||
};
|
||||
const roomId = "!test:example.com";
|
||||
const localRoomId = LOCAL_ROOM_ID_PREFIX + "test";
|
||||
|
||||
@ -45,8 +40,8 @@ describe("TypingStore", () => {
|
||||
const context = new TestSdkContext();
|
||||
context.client = mockClient;
|
||||
typingStore = new TypingStore(context);
|
||||
mocked(SettingsStore.getValue).mockImplementation((setting: string) => {
|
||||
return settings[setting];
|
||||
jest.spyOn(SettingsStore, "getValue").mockImplementation((name: string) => {
|
||||
return name === "sendTypingNotifications";
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user