Rename RoomEvent to TimelineEvent
This commit is contained in:
parent
16d3ed579b
commit
056c7d40eb
2 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ import { StorageError } from "../../common";
|
||||||
import { encodeUint32 } from "../utils";
|
import { encodeUint32 } from "../utils";
|
||||||
import {KeyLimits} from "../../common";
|
import {KeyLimits} from "../../common";
|
||||||
import {Store} from "../Store";
|
import {Store} from "../Store";
|
||||||
import {RoomEvent, StateEvent} from "../../types";
|
import {TimelineEvent, StateEvent} from "../../types";
|
||||||
|
|
||||||
interface Annotation {
|
interface Annotation {
|
||||||
count: number;
|
count: number;
|
||||||
|
@ -31,7 +31,7 @@ interface StorageEntry {
|
||||||
roomId: string;
|
roomId: string;
|
||||||
fragmentId: number;
|
fragmentId: number;
|
||||||
eventIndex: number;
|
eventIndex: number;
|
||||||
event: RoomEvent | StateEvent;
|
event: TimelineEvent | StateEvent;
|
||||||
displayName?: string;
|
displayName?: string;
|
||||||
avatarUrl?: string;
|
avatarUrl?: string;
|
||||||
annotations?: { [key : string]: Annotation };
|
annotations?: { [key : string]: Annotation };
|
||||||
|
|
|
@ -16,7 +16,7 @@ limitations under the License.
|
||||||
|
|
||||||
export type Content = { [key: string]: any }
|
export type Content = { [key: string]: any }
|
||||||
|
|
||||||
export interface RoomEvent {
|
export interface TimelineEvent {
|
||||||
content: Content;
|
content: Content;
|
||||||
type: string;
|
type: string;
|
||||||
event_id: string;
|
event_id: string;
|
||||||
|
@ -25,4 +25,4 @@ export interface RoomEvent {
|
||||||
unsigned?: Content;
|
unsigned?: Content;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type StateEvent = RoomEvent & { prev_content?: Content, state_key: string }
|
export type StateEvent = TimelineEvent & { prev_content?: Content, state_key: string }
|
||||||
|
|
Reference in a new issue