This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11# autogenerated file: run scripts/generate-eslint-error-ignore-file to update.
22
33src/Markdown.js
4- src/Rooms.js
5- src/Unread.js
64src/Velociraptor.js
75src/components/structures/RoomDirectory.js
86src/components/views/rooms/MemberList.js
Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ import {MatrixClientPeg} from './MatrixClientPeg';
2121 * if any. This could be the canonical alias if one exists, otherwise
2222 * an alias selected arbitrarily but deterministically from the list
2323 * of aliases. Otherwise return null;
24+ *
25+ * @param {Object } room The room object
26+ * @returns {string } A display alias for the given room
2427 */
2528export function getDisplayAliasForRoom ( room ) {
2629 return room . getCanonicalAlias ( ) || room . getAltAliases ( ) [ 0 ] ;
Original file line number Diff line number Diff line change @@ -16,12 +16,14 @@ limitations under the License.
1616
1717import { MatrixClientPeg } from "./MatrixClientPeg" ;
1818import shouldHideEvent from './shouldHideEvent' ;
19- import * as sdk from "./index" ;
2019import { haveTileForEvent } from "./components/views/rooms/EventTile" ;
2120
2221/**
2322 * Returns true iff this event arriving in a room should affect the room's
2423 * count of unread messages
24+ *
25+ * @param {Object } ev The event
26+ * @returns {boolean } True if the given event should affect the unread message count
2527 */
2628export function eventTriggersUnreadCount ( ev ) {
2729 if ( ev . sender && ev . sender . userId == MatrixClientPeg . get ( ) . credentials . userId ) {
You can’t perform that action at this time.
0 commit comments