Merge branch 'develop' of https://github.com/yaya-usman/matrix-react-sdk into favouriteMessages_Panel
This commit is contained in:
@@ -16,6 +16,7 @@ limitations under the License.
|
||||
|
||||
import { MatrixClientPeg } from "../MatrixClientPeg";
|
||||
import SettingsStore from "../settings/SettingsStore";
|
||||
import { isLocalRoom } from "../utils/localRoom/isLocalRoom";
|
||||
import Timer from "../utils/Timer";
|
||||
|
||||
const TYPING_USER_TIMEOUT = 10000;
|
||||
@@ -64,6 +65,9 @@ export default class TypingStore {
|
||||
* @param {boolean} isTyping Whether the user is typing or not.
|
||||
*/
|
||||
public setSelfTyping(roomId: string, threadId: string | null, isTyping: boolean): void {
|
||||
// No typing notifications for local rooms
|
||||
if (isLocalRoom(roomId)) return;
|
||||
|
||||
if (!SettingsStore.getValue('sendTypingNotifications')) return;
|
||||
if (SettingsStore.getValue('lowBandwidth')) return;
|
||||
// Disable typing notification for threads for the initial launch
|
||||
|
||||
@@ -18,7 +18,7 @@ import { Room } from "matrix-js-sdk/src/models/room";
|
||||
|
||||
import CallHandler from "../../../CallHandler";
|
||||
import { RoomListCustomisations } from "../../../customisations/RoomList";
|
||||
import { LocalRoom } from "../../../models/LocalRoom";
|
||||
import { isLocalRoom } from "../../../utils/localRoom/isLocalRoom";
|
||||
import VoipUserMapper from "../../../VoipUserMapper";
|
||||
|
||||
export class VisibilityProvider {
|
||||
@@ -55,7 +55,7 @@ export class VisibilityProvider {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (room instanceof LocalRoom) {
|
||||
if (isLocalRoom(room)) {
|
||||
// local rooms shouldn't show up anywhere
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user