Skip to content

Commit

Permalink
Use function syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
  • Loading branch information
SimonBrandner committed Aug 12, 2021
1 parent 10e42d4 commit f2dccbc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { EffectiveMembership, getEffectiveMembership } from "../../../../utils/m
import { EventType } from "matrix-js-sdk/src/@types/event";
import { MatrixEvent } from "matrix-js-sdk/src/models/event";

const ignoreSelfEvent = (event: MatrixEvent): boolean => {
export function ignoreSelfEvent(event: MatrixEvent): boolean {
const type = event.getType();
const content = event.getContent();
const prevContent = event.getPrevContent();
Expand All @@ -38,7 +38,7 @@ const ignoreSelfEvent = (event: MatrixEvent): boolean => {
if (type === EventType.RoomMember && prevContent.displayname !== content.displayname) return true;

return false;
};
}

export const sortRooms = (rooms: Room[]): Room[] => {
// We cache the timestamp lookup to avoid iterating forever on the timeline
Expand Down

0 comments on commit f2dccbc

Please sign in to comment.