mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Rename RoomEvent to TimelineEvent
This commit is contained in:
parent
16d3ed579b
commit
056c7d40eb
@ -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 }
|
||||||
|
Loading…
Reference in New Issue
Block a user