creating and retrieving links successfully

This commit is contained in:
Arjun Patel
2022-02-13 11:25:12 -08:00
parent bfc539671f
commit 244bdba9e1
7 changed files with 276 additions and 67 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ export default class Conversation {
membersInLiveRoom: string[] = [] as string[]; // all members in a live call right now for this convo
cachedAudioClip?: AudioClip; // last message pretty much
cachedDrawerItem?: Link; // last link pretty much
cachedLink?: Link; // last link pretty much
tldr?: string; // description almost that people keep up to day in the convo
@@ -92,7 +92,7 @@ export class Link {
url: string;
name: string;
type: LinkType;
// type: LinkType;
createdByUserId: string;
createdDate: Timestamp = Timestamp.now();
@@ -101,7 +101,7 @@ export class Link {
this.createdByUserId = _senderUserId;
this.url = _linkUrl;
this.name = _name;
this.type = Link.getLinkType(_linkUrl);
// this.type = Link.getLinkType(_linkUrl);
}
static getLinkType(url: string): LinkType {