forked from Ivasoft/mattermost-mobile
[Gekidou] Add is_unread to MyChannel model (#5878)
* Make message_count become has_unreads * Fix lint * Re-add the message count * rename has_unreads to is_unread and address feedback * fix query with is_unread Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
committed by
GitHub
parent
7e6248dfb3
commit
b49b4050ac
@@ -31,11 +31,14 @@ export default class MyChannelModel extends Model {
|
||||
/** manually_unread : Determine if the user marked a post as unread */
|
||||
@field('manually_unread') manuallyUnread!: boolean;
|
||||
|
||||
/** message_count : The derived number of unread messages on this channel */
|
||||
@field('message_count') messageCount!: number;
|
||||
|
||||
/** mentions_count : The number of mentions on this channel */
|
||||
@field('mentions_count') mentionsCount!: number;
|
||||
|
||||
/** message_count : The derived number of unread messages on this channel */
|
||||
@field('message_count') messageCount!: number;
|
||||
/** is_unread : Whether the channel has unread messages */
|
||||
@field('is_unread') isUnread!: boolean;
|
||||
|
||||
/** roles : The user's privileges on this channel */
|
||||
@field('roles') roles!: string;
|
||||
|
||||
Reference in New Issue
Block a user