expose isRss, don't close uncloseable Rss conversation on deleteMessages

pull/787/head
Ryan Tharp 5 years ago
parent aff22eb5f9
commit 8f77c2e00b

@ -561,6 +561,7 @@
type: this.isPrivate() ? 'direct' : 'group',
isMe: this.isMe(),
isPublic: this.isPublic(),
isRss: this.isRss(),
isClosable: this.isClosable(),
isTyping: typingKeys.length > 0,
lastUpdated: this.get('timestamp'),
@ -2798,11 +2799,19 @@
this.messageCollection.reset([]);
this.set({
lastMessage: null,
timestamp: null,
active_at: null,
});
// let's try to keep the RSS conversation open just empty...
if (this.isRss()) {
this.set({
lastMessage: null,
});
} else {
// this will remove the conversation from conversation lists...
this.set({
lastMessage: null,
timestamp: null,
active_at: null,
});
}
// Reset our friend status if we're not friends
if (!this.isFriend()) {

Loading…
Cancel
Save