Caching the room proxies and their messages. Improved performance throughout.

This commit is contained in:
Stefan Ceriu
2022-03-31 15:37:52 +03:00
parent b50bf724a3
commit 49f7678ce8
22 changed files with 191 additions and 189 deletions
@@ -30,7 +30,7 @@ struct EmoteRoomTimelineView: View {
struct EmoteRoomTimelineView_Previews: PreviewProvider {
static var previews: some View {
body
body.preferredColorScheme(.light)
body.preferredColorScheme(.dark)
}
@@ -51,7 +51,7 @@ struct EventBasedTimelineView: View {
struct EventBasedTimelineView_Previews: PreviewProvider {
static var previews: some View {
body
body.preferredColorScheme(.light)
body.preferredColorScheme(.dark)
}
@@ -35,7 +35,7 @@ struct FormattedBodyText: View {
struct FormattedBodyText_Previews: PreviewProvider {
static var previews: some View {
body
body.preferredColorScheme(.light)
body.preferredColorScheme(.dark)
}
@@ -35,7 +35,7 @@ struct ImageRoomTimelineView: View {
struct ImageRoomTimelineView_Previews: PreviewProvider {
static var previews: some View {
body
body.preferredColorScheme(.light)
body.preferredColorScheme(.dark)
}
@@ -30,7 +30,7 @@ struct NoticeRoomTimelineView: View {
struct NoticeRoomTimelineView_Previews: PreviewProvider {
static var previews: some View {
body
body.preferredColorScheme(.light)
body.preferredColorScheme(.dark)
}
@@ -36,7 +36,7 @@ struct PlaceholderAvatarImage: View {
struct PlaceholderAvatarImage_Previews: PreviewProvider {
static var previews: some View {
body
body.preferredColorScheme(.light)
body.preferredColorScheme(.dark)
}
@@ -44,7 +44,7 @@ struct LabelledDivider: View {
struct SeparatorRoomTimelineView_Previews: PreviewProvider {
static var previews: some View {
body
body.preferredColorScheme(.light)
body.preferredColorScheme(.dark)
}
@@ -27,7 +27,7 @@ struct TextRoomTimelineView: View {
struct TextRoomTimelineView_Previews: PreviewProvider {
static var previews: some View {
body
body.preferredColorScheme(.light)
body.preferredColorScheme(.dark)
}