Signal-Android icon indicating copy to clipboard operation
Signal-Android copied to clipboard

[Feature/bug] Manually force SMS fallback

Open generalmanager opened this issue 12 years ago • 10 comments

I just found the feature to manually send an unencrypted message (long press on the send icon), which I thought is what I wanted. Exept it isn't. I'm not sure what this should accomplish, so I don't know if the behaviour is a bug or if I want a new feature.

This is what I want: Case 1: I am in a data chat and have an internet connection

  • the mesage gets sent via sms
  • the message is encrypted

Case 2: I am in a data chat and turn wifi and mobile internet off

  • the message gets sent via SMS
  • the message is encrypted

Case 3: I am in an encrypted SMS chat

  • the message gets sent via SMS
  • the message is encrypted

Case 4: I am in an unencrypted SMS chat

  • the message gets sent via SMS
  • message is not encrypted

This is what I would expect from "send unencrypted message": Case 1: I am in a data chat and have an internet connection

  • the mesage gets sent via data
  • message is not encrypted

Case 2: I am in a data chat and turn wifi and mobile internet off

  • the message gets sent via SMS
  • message is not encrypted

Case 3: I am in an encrypted SMS chat

  • the message gets sent via SMS
  • message is not encrypted

Case 4: I am in an unencrypted SMS chat

  • the message gets sent via SMS
  • message is not encrypted

That's how it "works", at least for me: Case 1: I am in a data chat and have an internet connection

  • the message gets sent via data (I don't know it this should be happening)
  • message is encrypted (this should probably not happen)

Case 2: I am in a data chat and turn wifi and mobile internet off

  • the message gets sent via SMS
  • the message is not encrypted

I haven't tested case 3 and 4 yet (tell me if you want me to).

Is there any use in having this function? If so, could you quickly explain what it's supposed to do and why? It doesn't really help if two people write via SMS and somehow the session gets messed up - you could just go ahead and end or renew the session via the lock in the top bar.

I would personally like to be able to manually force the use of SMS and several friends asked me if it's implemented already. For most of them the usecase for that looks like this: The receiver turns off wifi and mobile internet to not be disturbed by instant messages or mails while doing important work. The expectation is, If somebody really needs to contact you, they'll either call or write a text message. Many people I know use exactly this behaviour at work and others know that. So when it's working hours, the other one doesn't immediately reply to your push messages, and you have to contact them, forcing TS to send an SMS is the next best option. No need for TS to know if they are offline (#677, #678)

generalmanager avatar Mar 01 '14 21:03 generalmanager

For cases 2-4 the message will already be sent via SMS, won't it? But in case 1 it would be a nice option to send just one message via SMS. Maybe this could be accomplished as a second option one gets when pressing long on the send icon.

L3st3r avatar Mar 02 '14 01:03 L3st3r

For cases 2-4 the message will already be sent via SMS, won't it?

yes but they are unencrypted. I want the same functionality as with the fallback function.

But in case 1 it would be a nice option to send just one message via SMS. Maybe this could be accomplished as a second option one gets when pressing long on the send icon.

We could do that, but I don't really see the point of sending an unencrypted data message or SMS. If there is no real use case for the existing and broken "send unencrypted" function, we could just replace it.

generalmanager avatar Mar 02 '14 01:03 generalmanager

Ah ok, then I didn't really understand what you meant. I just wanted to say that the cases 2-4 of what you want are already the default behaviour, so we only need to care for the first case.

But I also can't think of an use case where one would need this function because it would be easier to just end the secure session. So I agree that it would make sense to replace this function with the "send via SMS"-option.

L3st3r avatar Mar 02 '14 01:03 L3st3r

Hi Buddies! My humble opinion about the question proposed in this topic. I read lots of issues and messages in the mailing list about it and related things, and I'm from the opinion that SMS channel is not a fallback: it's an alternative! The PUSH channel has pros and contras, and the same about SMS channel.

PUSH channel is great to whose who have data connects (Wi-Fi, 3G...) available and/or free, and do not care if the destinatary just will receive the message when he connects to Internet (if he connects!). SMS channel is great to whose who have plans in which it's cheaper to use SMS than 3G, and prioritizes the delivery speed. Both channels support encrypted messages. One is not better than the other. Originally, you know, TextSecure was a SMS great client before to be, too, a PUSH great messenger.

So, I would like to reinforce the proposal that when both channels are available to be chosen (it means: both are TextSecure users with PUSH mode on), the choice should be given in each message to the user. It is the user who knows his haste and urgency, and if is better to him to burn megabytes on 3G or burn a SMS.

Currently, TextSecure just offers two ways to send PUSH and SMS: to send PUSH, the sender has to be online in that moment; to send SMS, the sender has to be offline in that moment. However, it should not be a problem to send a PUSH when the mobile is offline (every normal WhatsApp or Telegram user knows what happens: the message just will be sent when he connects to Internet and just will be delivered when the destinatary connects too), and should not be a problem to send a SMS when the mobile is online.

My 2 cents Buddies! It never hurts to say that TextSecure is really great! Congrats and thanks a lot for all the work! Hugs!

oiceberg avatar Mar 17 '14 06:03 oiceberg

@hellmy already introduced a PR to implement this: https://github.com/WhisperSystems/TextSecure/issues/1116

generalmanager avatar Mar 17 '14 08:03 generalmanager

Another usecase for "always force sms with this contact" (I have already experienced): Another textsecure user uninstalls Textsecure/gets his phone stolen/breaks his phone WITHOUT unregistering push (and doesn't bother using the ways provided). In order to send him a text message (SMS), I either have to disable Textsecure as standard sms app manually or unregister from push, disable encrypted conversation with this very contact an afterwards register push again. Such a hassle. In these cases, I would like to have an option to either 'always force unencrypted sms' for a specific contact or another way to (a little dirty) "phone, please forget that this user has whisperpush registered". To merge this issue, #1116, #1223 and #984, an implementation of a 'multi layer solution' seems desirable:

  • global: default conversation style priority (as already implemented), maybe even extended to "data/push encrypted", "data/push unencrypted", "sms encrypted", "sms unencrypted". This would be against moxies comment in #619 ("push ALWAYS encrypted"). So "data/push encrypted" and "data/push unencrypted" could be merged to "data/push (always encrypted)"
  • user specific (long press userchat OR userchat menutab): if default/global way not desired, define user specific default (consider this in appearance of SEND-arrow)
  • long press send: dropdown menu: choose for ONE TIME delivery: "data/push encrypted", "data/push unencrypted", "sms encrypted", "sms unencrypted". This range of choices should / should not (I am not sure) depend on the global "push available", "sms available" menu entries already available. This dropdown menu could be configured in global options. Then, if only 1 option remained, the longress should instantly work as this 1 option. Seems complicated, but I think, this improved usability a lot regarding using Textsecure as your fully customizable standard messaging-app with other Textsecure users, Cyanogenmod Users, FORMER , but still registered users of both, IOS users, "normal" contacts. Keep on your great work! (I'm not that deep into programming, otherwise I would participate)

floetenpiet avatar Apr 15 '14 09:04 floetenpiet

@floetenpiet I don't think this would be the proper way to do this. Did you see this: https://github.com/WhisperSystems/TextSecure/issues/1049 ?

generalmanager avatar Apr 15 '14 09:04 generalmanager

@generalmanager No, but I've read it now. Ok, then I'll have to wait for these: #1049, #619

floetenpiet avatar Apr 15 '14 09:04 floetenpiet

@Hellmy already programmed the functionality I asked for in this issue, it just has to get merged: https://github.com/WhisperSystems/TextSecure/pull/1116

generalmanager avatar Apr 15 '14 09:04 generalmanager

I'm going to close this, as https://github.com/WhisperSystems/TextSecure/pull/1116 just got merged.

generalmanager avatar Jun 12 '14 14:06 generalmanager