Import haveTileForEvent() from the right place
This commit is contained in:
parent
2461993ad1
commit
0d2cb6e731
5 changed files with 10 additions and 7 deletions
|
@ -17,6 +17,7 @@ limitations under the License.
|
|||
import {MatrixClientPeg} from "./MatrixClientPeg";
|
||||
import shouldHideEvent from './shouldHideEvent';
|
||||
import * as sdk from "./index";
|
||||
import {haveTileForEvent} from "./components/views/rooms/EventTile";
|
||||
|
||||
/**
|
||||
* Returns true iff this event arriving in a room should affect the room's
|
||||
|
@ -38,8 +39,7 @@ export function eventTriggersUnreadCount(ev) {
|
|||
} else if (ev.getType() == 'm.room.server_acl') {
|
||||
return false;
|
||||
}
|
||||
const EventTile = sdk.getComponent('rooms.EventTile');
|
||||
return EventTile.haveTileForEvent(ev);
|
||||
return haveTileForEvent(ev);
|
||||
}
|
||||
|
||||
export function doesRoomHaveUnreadMessages(room) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue