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 {KeyLimits} from "../../common";
|
||||
import {Store} from "../Store";
|
||||
import {RoomEvent, StateEvent} from "../../types";
|
||||
import {TimelineEvent, StateEvent} from "../../types";
|
||||
|
||||
interface Annotation {
|
||||
count: number;
|
||||
@ -31,7 +31,7 @@ interface StorageEntry {
|
||||
roomId: string;
|
||||
fragmentId: number;
|
||||
eventIndex: number;
|
||||
event: RoomEvent | StateEvent;
|
||||
event: TimelineEvent | StateEvent;
|
||||
displayName?: string;
|
||||
avatarUrl?: string;
|
||||
annotations?: { [key : string]: Annotation };
|
||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
||||
|
||||
export type Content = { [key: string]: any }
|
||||
|
||||
export interface RoomEvent {
|
||||
export interface TimelineEvent {
|
||||
content: Content;
|
||||
type: string;
|
||||
event_id: string;
|
||||
@ -25,4 +25,4 @@ export interface RoomEvent {
|
||||
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