Try offloading sendMessage from the UI thread
Stephen Paul Weber
created
To improve performance when pushing the button, don't hit the DB from UI
thread etc.
Change summary
src/main/java/eu/siacs/conversations/ui/ConversationFragment.java | 2
1 file changed, 1 insertion(+), 1 deletion(-)
Detailed changes
@@ -3720,7 +3720,7 @@ public class ConversationFragment extends XmppFragment
}
protected void sendMessage(Message message) {
- activity.xmppConnectionService.sendMessage(message);
+ new Thread(() -> activity.xmppConnectionService.sendMessage(message)).start();
messageSent();
}