11 lines
438 B
TypeScript
11 lines
438 B
TypeScript
// Metro module 16330 (f16331).
|
|
import ChannelStore from "../../stores/ChannelStore";
|
|
import { SYSTEM_USER } from "./Constants";
|
|
import SelectedChannelActionCreators from "../../actions/SelectedChannelActionCreators";
|
|
export default function navigateToSystemDM() {
|
|
const dMFromUserId = ChannelStore.getDMFromUserId(SYSTEM_USER);
|
|
if (dMFromUserId != null) {
|
|
SelectedChannelActionCreators.selectPrivateChannel(dMFromUserId);
|
|
}
|
|
};
|