Skip to content

Commit

Permalink
fix minor issues of forwarding message
Browse files Browse the repository at this point in the history
  • Loading branch information
asliayk committed Mar 2, 2025
1 parent d50ff6e commit 05184b9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,6 @@ public Boolean doesResolvePost() {
return resolvesPost;
}

@Column(name = "has_forwarded_messages")
private boolean hasForwardedMessages;

public boolean getHasForwardedMessages() {
return hasForwardedMessages;
}

public void setHasForwardedMessages(boolean hasForwardedMessages) {
this.hasForwardedMessages = hasForwardedMessages;
}

public void setResolvesPost(Boolean resolvesPost) {
this.resolvesPost = resolvesPost;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ public class Post extends Posting {
@Transient
private boolean isSaved = false;

@Column(name = "has_forwarded_messages")
private boolean hasForwardedMessages;

@Column(name = "original_answer_id")
private Long originalAnswerId;

Expand All @@ -122,14 +119,6 @@ public void setTitle(String title) {
this.title = title;
}

public boolean getHasForwardedMessages() {
return hasForwardedMessages;
}

public void setHasForwardedMessages(boolean hasForwardedMessages) {
this.hasForwardedMessages = hasForwardedMessages;
}

public Boolean isVisibleForStudents() {
return visibleForStudents;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public abstract class Posting extends DomainObject {
@Transient
private UserRole authorRoleTransient;

@Column(name = "has_forwarded_messages")
private boolean hasForwardedMessages;

public String getTokenizedContent() {
return tokenizedContent;
}
Expand Down Expand Up @@ -121,4 +124,12 @@ public void setAuthorRole(UserRole authorRole) {
public abstract Course getCoursePostingBelongsTo();

public abstract Conversation getConversation();

public boolean getHasForwardedMessages() {
return hasForwardedMessages;
}

public void setHasForwardedMessages(boolean hasForwardedMessages) {
this.hasForwardedMessages = hasForwardedMessages;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ export class PostingReactionsBarComponent<T extends Posting> implements OnInit,
.subscribe({
next: (conversations) => {
conversations.forEach((conversation) => {
if (conversation.type === ConversationType.CHANNEL && !(conversation as ChannelDTO).isAnnouncementChannel) {
if (conversation.type === ConversationType.CHANNEL && !(conversation as ChannelDTO).isAnnouncementChannel && !(conversation as ChannelDTO).isArchived) {
this.channels.push(conversation as ChannelDTO);
}
});
Expand Down

0 comments on commit 05184b9

Please sign in to comment.