Change out debug

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-05-27 12:02:51 +01:00
parent 3dade4e759
commit efa47f1a8e
2 changed files with 1 additions and 2 deletions

View File

@ -624,6 +624,7 @@ export default class MatrixChat extends React.PureComponent<IProps, IState> {
break; break;
} }
case 'view_room_directory': { case 'view_room_directory': {
console.log("DEBUG view_room_directory");
const RoomDirectory = sdk.getComponent("structures.RoomDirectory"); const RoomDirectory = sdk.getComponent("structures.RoomDirectory");
Modal.createTrackedDialog('Room directory', '', RoomDirectory, {}, Modal.createTrackedDialog('Room directory', '', RoomDirectory, {},
'mx_RoomDirectory_dialogWrapper', false, true); 'mx_RoomDirectory_dialogWrapper', false, true);

View File

@ -56,7 +56,6 @@ export default class ToastStore extends EventEmitter {
* @param {object} newToast The new toast * @param {object} newToast The new toast
*/ */
addOrReplaceToast<C extends keyof JSX.IntrinsicElements | JSXElementConstructor<any>>(newToast: IToast<C>) { addOrReplaceToast<C extends keyof JSX.IntrinsicElements | JSXElementConstructor<any>>(newToast: IToast<C>) {
console.log("DEBUG addOrReplaceToast", newToast.key, JSON.stringify(newToast));
const oldIndex = this.toasts.findIndex(t => t.key === newToast.key); const oldIndex = this.toasts.findIndex(t => t.key === newToast.key);
if (oldIndex === -1) { if (oldIndex === -1) {
let newIndex = this.toasts.length; let newIndex = this.toasts.length;
@ -69,7 +68,6 @@ export default class ToastStore extends EventEmitter {
} }
dismissToast(key) { dismissToast(key) {
console.log("DEBUG dismissToast", key);
if (this.toasts[0] && this.toasts[0].key === key) { if (this.toasts[0] && this.toasts[0].key === key) {
this.countSeen++; this.countSeen++;
} }