Skip to content

Commit 745da77

Browse files
committed
Make sure that we can tweet zero-length messages with images
This is allowed on the web UI, even though the URL will now be in the additional metadata rather than the message text
1 parent 662b905 commit 745da77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/window/ComposeTweetWindow.vala

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class ComposeTweetWindow : Gtk.ApplicationWindow {
172172
int length = TweetUtils.calc_tweet_length (text, add_url);
173173

174174
length_label.label = (Cb.Tweet.MAX_LENGTH - length).to_string ();
175-
if (length > 0 && length <= Cb.Tweet.MAX_LENGTH)
175+
if ((length > 0 && length <= Cb.Tweet.MAX_LENGTH) || (compose_image_manager.n_images > 0 && length == 0))
176176
send_button.sensitive = true;
177177
else
178178
send_button.sensitive = false;

0 commit comments

Comments
 (0)