develop-polls #93
@@ -51,6 +51,7 @@ class _ChatViewState extends State<ChatView> {
|
|||||||
var elementDate = DateTime.fromMillisecondsSinceEpoch(element.timestamp * 1000);
|
var elementDate = DateTime.fromMillisecondsSinceEpoch(element.timestamp * 1000);
|
||||||
|
|
||||||
if(element.systemMessage.contains('reaction')) return;
|
if(element.systemMessage.contains('reaction')) return;
|
||||||
|
if(element.systemMessage.contains('poll_voted')) return;
|
||||||
var commonRead = int.parse(data.getChatResponse.headers?['x-chat-last-common-read'] ?? '0');
|
var commonRead = int.parse(data.getChatResponse.headers?['x-chat-last-common-read'] ?? '0');
|
||||||
|
|
||||||
if(!elementDate.isSameDay(lastDate)) {
|
if(!elementDate.isSameDay(lastDate)) {
|
||||||
@@ -128,7 +129,7 @@ class _ChatViewState extends State<ChatView> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
color: Theme.of(context).colorScheme.background,
|
color: Theme.of(context).colorScheme.surface,
|
||||||
child: TalkNavigator.isSecondaryVisible(context)
|
child: TalkNavigator.isSecondaryVisible(context)
|
||||||
? ChatTextfield(widget.room.token, selfId: widget.selfId)
|
? ChatTextfield(widget.room.token, selfId: widget.selfId)
|
||||||
: SafeArea(child: ChatTextfield(widget.room.token, selfId: widget.selfId)
|
: SafeArea(child: ChatTextfield(widget.room.token, selfId: widget.selfId)
|
||||||
|
|||||||
@@ -306,20 +306,20 @@ class _ChatBubbleState extends State<ChatBubble> with SingleTickerProviderStateM
|
|||||||
showDialog(context: context, builder: (context) => AlertDialog(
|
showDialog(context: context, builder: (context) => AlertDialog(
|
||||||
title: Text(message.originalData!['object']!.name, textScaler: TextScaler.linear(0.9)),
|
title: Text(message.originalData!['object']!.name, textScaler: TextScaler.linear(0.9)),
|
||||||
|
Pupsi marked this conversation as resolved
Outdated
|
|||||||
content: FutureBuilder(
|
content: FutureBuilder(
|
||||||
future: pollState,
|
future: pollState,
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if(snapshot.connectionState == ConnectionState.waiting) return const Column(mainAxisSize: MainAxisSize.min, children: [LoadingSpinner()]);
|
if(snapshot.connectionState == ConnectionState.waiting) return const Column(mainAxisSize: MainAxisSize.min, children: [LoadingSpinner()]);
|
||||||
|
|
||||||
var pollData = snapshot.data!.data;
|
var pollData = snapshot.data!.data;
|
||||||
return ListView(
|
return ListView(
|
||||||
shrinkWrap: true,
|
shrinkWrap: true,
|
||||||
children: [
|
children: [
|
||||||
PollOptionsList(
|
PollOptionsList(
|
||||||
pollData: pollData
|
pollData: pollData
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
actions: [
|
actions: [
|
||||||
TextButton(
|
TextButton(
|
||||||
|
|||||||
Reference in New Issue
Block a user
ist der scale an andern stellen auch so präsent?