Removing unused code
This commit is contained in:
-9
@@ -228,15 +228,6 @@ class StreamChannelListTile extends StatelessWidget {
|
|||||||
return const Offstage();
|
return const Offstage();
|
||||||
}
|
}
|
||||||
|
|
||||||
final isLastMessageRead = channelState.read
|
|
||||||
.where(
|
|
||||||
(readData) => readData.user.id != currentUser.id,
|
|
||||||
)
|
|
||||||
.any((readData) =>
|
|
||||||
readData.lastRead.isAfter(lastMessage.createdAt) ||
|
|
||||||
readData.lastRead
|
|
||||||
.isAtSameMomentAs(lastMessage.createdAt));
|
|
||||||
|
|
||||||
final hasNonUrlAttachments = lastMessage.attachments
|
final hasNonUrlAttachments = lastMessage.attachments
|
||||||
.where((it) => it.titleLink == null || it.type == 'giphy')
|
.where((it) => it.titleLink == null || it.type == 'giphy')
|
||||||
.isNotEmpty;
|
.isNotEmpty;
|
||||||
|
|||||||
Reference in New Issue
Block a user