feat(frontend): profile panel about one person with real changes, shared groups, joins and leaves and deleted messages
This commit is contained in:
1 parent
c8d485fe0e
commit
143408cd7f
12 files changed
+899
-244
No files matched your search
@@ -19,7 +19,8 @@ import type {
|
||||
MessageAt,
|
||||
MessageVersion,
|
||||
MessageView,
|
||||
PeerHistoryView,
|
||||
PeerGroups,
|
||||
PeerOverview,
|
||||
PeerView,
|
||||
PinnedView,
|
||||
PolicyChatKind,
|
||||
@@ -30,6 +31,7 @@ import type {
|
||||
PresenceSample,
|
||||
PresenceSession,
|
||||
PresenceStats,
|
||||
ProfileChange,
|
||||
ReactionView,
|
||||
ReadInfo,
|
||||
ResponseStats,
|
||||
@@ -276,8 +278,16 @@ export function getPeer(peerId: number): Promise<PeerView> {
|
||||
return request<PeerView>(`/peers/${peerId}`, { account: true });
|
||||
}
|
||||
|
||||
export function getPeerHistory(peerId: number): Promise<PeerHistoryView[]> {
|
||||
return request<PeerHistoryView[]>(`/peers/${peerId}/history`, {
|
||||
export function getPeerOverview(peerId: number): Promise<PeerOverview> {
|
||||
return request<PeerOverview>(`/peers/${peerId}/overview`, { account: true });
|
||||
}
|
||||
|
||||
export function getPeerGroups(peerId: number): Promise<PeerGroups> {
|
||||
return request<PeerGroups>(`/peers/${peerId}/groups`, { account: true });
|
||||
}
|
||||
|
||||
export function getChatChanges(chatId: number): Promise<ProfileChange[]> {
|
||||
return request<ProfileChange[]>(`/chats/${chatId}/changes`, {
|
||||
account: true,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user