diff --git a/internal/webserver/tpl/tweet_page_includes/chat_profile_image.tpl b/internal/webserver/tpl/tweet_page_includes/chat_profile_image.tpl new file mode 100644 index 0000000..0faa8b3 --- /dev/null +++ b/internal/webserver/tpl/tweet_page_includes/chat_profile_image.tpl @@ -0,0 +1,22 @@ +{{/* + Equivalent of an "author info", but for chats; could be an author info or a group-chat. +*/}} +{{define "chat-profile-image"}} + {{if (eq .Type "ONE_TO_ONE")}} + {{range .Participants}} + {{if (ne .UserID (active_user).ID)}} + +
+ {{template "author-info" (user .UserID)}} +
+ {{end}} + {{end}} + {{else}} +
+ {{template "circle-profile-img-no-link" (dict "IsContentDownloaded" false "ProfileImageUrl" .AvatarImageRemoteURL)}} +
+
{{.Name}}
+
+
+ {{end}} +{{end}} diff --git a/pkg/persistence/dm_queries.go b/pkg/persistence/dm_queries.go index 63c8545..45a8073 100644 --- a/pkg/persistence/dm_queries.go +++ b/pkg/persistence/dm_queries.go @@ -549,8 +549,6 @@ func (p Profile) NextDMPage(c DMCursor) DMChatView { ` + c.SortOrder.OrderByClause() + ` limit ? ` - fmt.Printf("query: %s\n", q) - fmt.Printf("Bind values: %#v\n", bind_values) err := p.DB.Select(&msgs, q, bind_values...) if err != nil {