@amityco/ts-sdk
Version:
Amity Social Cloud Typescript SDK
9 lines (7 loc) • 313 B
text/typescript
import { markAsRead } from '~/channelRepository/internalApi/markAsRead';
import { shallowClone } from '../shallowClone';
export const channelLinkedObject = (channel: Amity.InternalChannel): Amity.Channel => {
return shallowClone(channel, {
markAsRead: () => markAsRead(channel.channelInternalId),
});
};